Skip to content

Commit

Permalink
ci: added the process that creates the unitypackage.zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Apr 16, 2024
1 parent 1c2b83e commit facad49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ jobs:
echo "version=${{ steps.version.outputs.value }}" >> $GITHUB_ENV
- name: Zip the Package for release
working-directory: "${{ env.packagePath }}"
run: zip -r "${{ github.workspace }}/${{ env.zipFile }}" .
run: zip -r -9 "${{ 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: Zip the UnityPackage for release
run: zip -r -9 "${{ env.unityPackage }}.zip" ${{ env.unityPackage }} LICENSE README.md
- name: Make a release tag of the version from the package.json file
id: tag_version
uses: rickstaa/action-create-tag@v1
Expand All @@ -61,5 +63,6 @@ jobs:
files: |
${{ env.zipFile }}
${{ env.unityPackage }}
${{ env.unityPackage }}.zip
${{ env.packagePath }}/package.json
tag_name: ${{ env.version }}

0 comments on commit facad49

Please sign in to comment.