build: add upload-artifact to test created package

This commit is contained in:
anatawa12 2023-06-24 13:58:34 +09:00 committed by bd_
parent e6e808b2e8
commit 1850945d34

View File

@ -72,12 +72,22 @@ jobs:
directory: "Packages/${{env.packageName}}/"
filename: "../../${{env.zipFile}}" # make the zip file two directories up, since we start two directories in above
- uses: actions/upload-artifact@v3
with:
name: package-zip
path: ${{ env.zipFile }}
- name: Create unitypackage
uses: anatawa12/sh-actions/create-unitypackage@master
with:
output-path: ${{ env.unityPackage }}
package-path: Packages/${{ env.packageName }}
- uses: actions/upload-artifact@v3
with:
name: unitypackage
path: ${{ env.unityPackage }}
- name: Make Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
if: startsWith(github.ref, 'refs/tags/')