generated from vrchat-community/template-package
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.79 KB
/
push.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
46
47
name: The CI workflow on push
on:
push:
branches:
- '*'
- '!main'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
packagePath: Packages/${{ vars.PACKAGE_NAME }}
zipFile:
steps:
- name: Checkout Local Repository
uses: actions/checkout@v4
- name: Configure the Environment Variables needed for releasing the Package
run: |
echo "zipFile=${{ vars.PACKAGE_NAME }}-feature.zip" >> $GITHUB_ENV
- name: Zip the Package for testing
working-directory: "${{ env.packagePath }}"
run: zip -r "${{ github.workspace }}/${{ env.zipFile }}" .
- name: Build a list of .meta files for future use
run: find "${{ env.packagePath }}/" -name \*.meta >> metaList
- name: Make a UnityPackage version of the Package for release
uses: pCYSl5EDgo/create-unitypackage@v1
with:
package-path: ${{ env.unityPackage }}
include-files: metaList
- name: Checkout Automation Repository without removing prior checkouts
uses: actions/checkout@v4
with:
repository: vrchat-community/package-list-action
path: ${{ env.pathToCi }}
clean: false
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
path: |
${{ env.pathToCi }}/.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Build Package Version Listing with Nuke
run: ${{ env.pathToCi }}/build.cmd BuildRepoListing --root ${{ env.pathToCi }} --list-publish-directory $GITHUB_WORKSPACE/${{ env.listPublishDirectory }} --current-package-name ${{ vars.PACKAGE_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}