Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepami committed Aug 11, 2024
1 parent 7461835 commit c011fdf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,19 @@ jobs:
run: |
mkdir output
dotnet publish ./src/HydraScript/HydraScript.csproj -c Release -r ${{ matrix.config.rid }} -p:PublishSingleFile=true -p:DebugType=embedded -p:Version=${{ needs.create-release.outputs.determined_version }} --self-contained false -o ./output
- name: Get New Executable Name
id: get_new_exec_name
run: echo "exec_filename=hydrascript_${{ matrix.config.rid }}${{ matrix.config.rid == 'win-x64' && '.exe' || '' }}" >> $GITHUB_OUTPUT
- name: Rename Executable
run: mv ./output/HydraScript${{ matrix.config.rid == 'win-x64' && '.exe' || '' }} ./output/${{ steps.get_new_exec_name.outputs.exec_filename }}
- name: Add asset to a release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: 'Stepami'
repository: 'hydrascript'
milestone: 'v${{ needs.create-release.outputs.determined_version }}'
assets: ./output/HydraScript${{ matrix.config.rid == 'win-x64' && '.exe' || '' }}
assets: ./output/${{ steps.get_new_exec_name.outputs.exec_filename }}

publish-release:
name: Publish release
Expand Down

0 comments on commit c011fdf

Please sign in to comment.