Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
rafageist committed Aug 17, 2024
1 parent 0e0c27a commit ca1bb84
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
Expand All @@ -24,11 +25,15 @@ jobs:
- name: Build
run: dotnet publish generator/Divengine.CSharpMapper.csproj -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./output

- name: Rename executable
run: |
mv ./output/Divengine.CSharpMapper.exe ./output/csmapper.exe
- name: Archive executable
uses: actions/upload-artifact@v3
with:
name: csmapper
path: ./output/
path: ./output/csmapper.exe

release:
needs: build
Expand All @@ -38,7 +43,7 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: cdmapper
name: csmapper

- name: Create Release
id: create_release
Expand All @@ -57,6 +62,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./csmapper.exe
asset_path: ./csmapper/csmapper.exe
asset_name: csmapper.exe
asset_content_type: application/octet-stream

0 comments on commit ca1bb84

Please sign in to comment.