Skip to content

Commit

Permalink
fix release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-IN committed Apr 7, 2022
1 parent c4e3357 commit 4d564ba
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ on:
jobs:

build_and_test:
name: Build
name: Build Release
runs-on: ubuntu-20.04
permissions:
contents: write
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
Expand Down Expand Up @@ -76,9 +78,14 @@ jobs:
run: |
mv DistantWorlds2.ModLoader/bin/Release/net472/DistantWorlds2.ModLoader.dll ReleaseTemplate/
mv DW2Net6Win/bin/Release/net6.0-windows/win-x64/publish/DW2Net6Win.exe ReleaseTemplate/
- name: Upload Artifact
uses: actions/upload-artifact@v3
- name: Zip
run: zip -9r "${{ github.event.repository.name }}.${{ steps.git-tag-metadata.outputs.version }}.zip" .
working-directory: ReleaseTemplate/
- name: Create Release
uses: softprops/action-gh-release@v0.1.14
with:
name: ${{ github.event.repository.name }}.${{ steps.git-tag-metadata.outputs.version }}
path: ReleaseTemplate/
if-no-files-found: error
name: ${{ steps.git-tag-metadata.outputs.version }}
files: |
ReleaseTemplate/${{ github.event.repository.name }}.${{ steps.git-tag-metadata.outputs.version }}.zip
env:
GITHUB_TOKEN: ${{github.token}}

0 comments on commit 4d564ba

Please sign in to comment.