generated from unity-korea-community/unity-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.17 KB
/
copy-to-workspace.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 이 워크플로는 파일을 카피합니다.
#
# workflow syntax
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: copy to workspace
on:
push:
branches:
- master # match env.SRC_BRANCH
env:
# Require unity test
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_VERSION: 2019.3.8f1
# require Deploy
DEST_OWNER: unity-korea-community
SRC_BRANCH: master
WORK_PATH: /.
DEST_BRANCH: workspace
DEST_PATH: Packages/${{ github.event.repository.name }}/
jobs:
copy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.SRC_BRANCH }}
lfs: true
- name: Deploy
uses: andstor/[email protected] # https://github.com/marketplace/actions/copycat-action
with:
personal_token: ${{ secrets.ACCESS_TOKEN }} #require
src_branch: ${{ env.SRC_BRANCH }}
src_path: ${{ env.WORK_PATH }} #require
dst_owner: ${{ env.DEST_OWNER }} #require
dst_repo_name: ${{ github.event.repository.name }} #require
dst_branch: ${{ env.DEST_BRANCH }}
dst_path: ${{ env.DEST_PATH }}
clean: true