Skip to content

Commit

Permalink
ci: improved the CI/CD scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Oct 10, 2024
1 parent d6ba61f commit 68792c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
path: ${{ env.pathToCi }}
clean: false
- name: Deploy the global.json file
run: cp ${{ github.workspace }}/global.json ${{ env.pathToCi }}/
run: cp "${{ github.workspace }}/global.json" "${{ env.pathToCi }}/"
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
Expand All @@ -57,7 +57,7 @@ jobs:
~/.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 }}
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 }}
- name: Prepare for GitHub Pages deployment
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
echo "unityPackage=${{ vars.PACKAGE_NAME }}-feature.unitypackage" >> $GITHUB_ENV
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 }}" .
working-directory: "${{ env.packagePath }}"
- name: Build a list of .meta files for future use
run: find "${{ env.packagePath }}/" -name \*.meta >> metaList
run: find "${{ env.packagePath }}/" -name '*.meta' -type f >> metaList
- name: Make a UnityPackage version of the Package for release
uses: pCYSl5EDgo/create-unitypackage@v1
with:
Expand All @@ -39,7 +39,7 @@ jobs:
path: ${{ env.pathToCi }}
clean: false
- name: Deploy the global.json file
run: cp ${{ github.workspace }}/global.json ${{ env.pathToCi }}/
run: cp "${{ github.workspace }}/global.json" "${{ env.pathToCi }}/"
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
Expand All @@ -48,6 +48,6 @@ jobs:
~/.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 }}
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 }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ jobs:
echo "version=${{ steps.version.outputs.value }}" >> $GITHUB_ENV
echo "zipFile=${{ vars.PACKAGE_NAME }}-${{ steps.version.outputs.value }}.zip" >> $GITHUB_ENV
- name: Zip the Package for release
working-directory: "${{ env.packagePath }}"
run: zip -r -9 "${{ github.workspace }}/${{ env.zipFile }}" .
working-directory: "${{ env.packagePath }}"
- name: Build a list of .meta files for future use
run: find "${{ env.packagePath }}/" -name \*.meta >> metaList
run: find "${{ env.packagePath }}/" -name '*.meta' -type f >> metaList
- name: Make a UnityPackage version of the Package for release
uses: pCYSl5EDgo/create-unitypackage@v1
with:
Expand Down

0 comments on commit 68792c4

Please sign in to comment.