diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e8314f..60a288e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,6 @@ name: Build Release on: workflow_dispatch: - push: - branches: main - paths: Packages/com.vrchat.demo-template/** env: packageName: "com.vrchat.demo-template" @@ -22,15 +19,16 @@ jobs: - name: get version id: version - uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31 + uses: zoexx/github-action-json-file-properties@b9f36ce6ee6fe2680cd3c32b2c62e22eade7e590 with: - path: "Packages/${{env.packageName}}/package.json" + file_path: "Packages/${{env.packageName}}/package.json" prop_path: "version" - name: Set Environment Variables run: | - echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV - echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV + echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.value }}".zip >> $GITHUB_ENV + echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.value }}.unitypackage" >> $GITHUB_ENV + echo "version=${{ steps.version.outputs.value }}" >> $GITHUB_ENV - name: Create Zip uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657 @@ -46,13 +44,18 @@ jobs: with: package-path: ${{ env.unityPackage }} include-files: metaList - + + - name: Create Tag + id: tag_version + uses: rickstaa/action-create-tag@07b918ecbf94359b859f25f7a70553a84e804923 + with: + tag: "${{env.version}}" - name: Make Release - uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 with: - tag_name: ${{ steps.version.outputs.prop }} files: | ${{ env.zipFile }} ${{ env.unityPackage }} Packages/${{ env.packageName }}/package.json + tag_name: ${{env.version}}