Skip to content

Commit

Permalink
aww, just forgot change dotnet version
Browse files Browse the repository at this point in the history
  • Loading branch information
Folleach committed Jan 13, 2024
1 parent 2ad6471 commit 5800e54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
packages: write
strategy:
matrix:
dotnet: [ "6.0" ]
runtime: [ linux-x64, win-x64 ]
project: [ ArtToGeometryDash ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: ${{ matrix.dotnet }}.x
- name: Set Version
run: echo ${{ github.ref_name }} | sed -r "s/^v/TOOL_VERSION=/" >> $GITHUB_ENV
- name: Restore dependencies
Expand All @@ -28,7 +29,7 @@ jobs:
run: dotnet publish ./${{ matrix.project }}/${{ matrix.project }}.csproj -c Release -r ${{ matrix.runtime }} -p:Version=$TOOL_VERSION -p:PublishSingleFile=true --self-contained true
- name: edit binaries
run: |
cd ./${{ matrix.project }}/bin/Release/net6.0/${{ matrix.runtime }}/publish
cd ./${{ matrix.project }}/bin/Release/net${{ matrix.dotnet }}/${{ matrix.runtime }}/publish
rm *.pdb
for file in *; do
if [[ $file == *.* ]]; then
Expand All @@ -43,4 +44,4 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
./${{ matrix.project }}/bin/Release/net8.0/${{ matrix.runtime }}/publish/*
./${{ matrix.project }}/bin/Release/net${{ matrix.dotnet }}/${{ matrix.runtime }}/publish/*

0 comments on commit 5800e54

Please sign in to comment.