forked from BenoitFreslon/Vibration
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.42 KB
/
main.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
name: Unity Package CI
on:
push:
branches:
- upm-package-embedded
repository_dispatch:
types: [on-demand-test]
env:
PKG_BRANCH: upm
PKG_NAME: com.benoitfreslon.vibration
PKG_ROOT: ./
jobs:
split-upm:
name: Create upm package branch (force)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set output git tag and commit message
id: vars
run: ./.github/scripts/functions.sh githubActionsVariables
- name: Check output git variables
env:
LAST_RELEASE_TAG: ${{ steps.vars.outputs.tag }}
COMMIT_MESSAGE: ${{ steps.vars.outputs.commit_message }}
run: |
echo $LAST_RELEASE_TAG
echo $COMMIT_MESSAGE
- name: Checkout orphan [${{ env.PKG_BRANCH }}] branch
run: |
git checkout --orphan "$PKG_BRANCH"
shopt -s extglob dotglob
rm -rf !(Packages|.github|.git|README.md|README.md.meta|LICENSE|LICENSE.meta|Images|Images.meta|.|..)
ls -la ./
- name: Move ./Packages content to root
run: ./.github/scripts/functions.sh movePackagesFolder
- name: Create Samples~ and Documentation~ folders
run: ./.github/scripts/functions.sh push
env:
LAST_RELEASE_TAG: ${{ steps.vars.outputs.tag }}
COMMIT_MESSAGE: ${{ steps.vars.outputs.commit_message }}