From cee7a2f0844f630cedec6938a8400926eb64b9cd Mon Sep 17 00:00:00 2001 From: Makosai Date: Thu, 5 Oct 2023 10:39:24 -0400 Subject: [PATCH] Update godot.yml --- .github/workflows/godot.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/godot.yml b/.github/workflows/godot.yml index 406099e3..2d4e427f 100644 --- a/.github/workflows/godot.yml +++ b/.github/workflows/godot.yml @@ -27,18 +27,14 @@ jobs: id: build uses: manleydev/build-godot-action@v1.5.0 with: - name: "Reia_${{ steps.replace_string.outputs.replaced }}" + name: "Reia_${{ steps.replace_string.outputs.replaced }}.exe" preset: ${{ matrix.platform }} debugMode: "false" - package: true - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release And Upload Asset + uses: softprops/action-gh-release@v1 + if: ${{startsWith(github.ref, 'refs/tags/') }} with: - tag_name: ${{ github.ref_name }} - release_name: ${{ github.ref_name }} + files: build/Reia_${{ steps.replace_string.outputs.replaced }}.exe body: | # Reia - `${{ github.ref_name }}` @@ -62,13 +58,3 @@ jobs: ... draft: true prerelease: true - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ${{ github.workspace }}/${{ steps.build.outputs.build }} - asset_name: Reia_${{ steps.replace_string.outputs.replaced }}.zip - asset_content_type: application/zip