Skip to content

Commit

Permalink
Finalize the executable name. Automatically create a release note and…
Browse files Browse the repository at this point in the history
… upload the executable at the same time.
  • Loading branch information
Makosai committed Oct 5, 2023
1 parent 12def6f commit fdc82b9
Showing 1 changed file with 48 additions and 5 deletions.
53 changes: 48 additions & 5 deletions .github/workflows/godot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,54 @@ jobs:
id: build
uses: manleydev/build-godot-action@v1.5.0
with:
name: "Reia"
name: "Reia.exe"
preset: ${{ matrix.platform }}
debugMode: "false"
- name: Upload Artifact
uses: actions/upload-artifact@v2
- name: Format Tag Name
id: repalce_string
uses: frabert/replace-string-action@v2
with:
name: Reia ${{ github.event.release.tag_name }} - ${{ matrix.platform }} client
path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
pattern: '\.'
string: ${{ github.event.release.tag_name }}
replace-with: '_'
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.release.tag_name }}
release_name: ${{ github.event.release.tag_name }}
body: |
# Reia - `${{ github.event.release.tag_name }}`
...
### Changes
**Added:**
- ...
**Removed:**
- ...
**Changed:**
- ...
**Fixed:**
- ...
----
...
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.repalce_string.outputs }}.zip
asset_content_type: application/zip

0 comments on commit fdc82b9

Please sign in to comment.