diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5522a4..aba359a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,31 @@ jobs: name: project path: addons - publish: + publish-release: + needs: [package] + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4.1.7 + with: + ref: master + - name: download all build artifacts + uses: actions/download-artifact@v4.1.8 + with: + name: project + path: addons + - name: compress release + run: | + mkdir dist + tar -czvf dist/godot-pure-data-universal.tar.gz -C addons . + - name: create release + uses: softprops/action-gh-release@v2.0.8 + with: + files: dist/* + fail_on_unmatched_files: true + + publish-commit: needs: [package] if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest @@ -69,7 +93,7 @@ jobs: git push remove-old-artifacts: - needs: [publish] + needs: [publish-release, publish-commit] runs-on: ubuntu-latest timeout-minutes: 10 steps: