Skip to content

Commit

Permalink
ci: added the CI scripts for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Oct 10, 2024
1 parent d244176 commit bab265b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}

0 comments on commit bab265b

Please sign in to comment.