Skip to content

Commit

Permalink
Merge pull request #4 from xiaomi7732/dev/saars/fix-release-pipeline
Browse files Browse the repository at this point in the history
Release self-contained
  • Loading branch information
xiaomi7732 authored May 10, 2022
2 parents ad60b07 + 602eefa commit 9042f8f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ jobs:
- name: Test
run: dotnet test tests/ProjectAssets.Core.Tests --verbosity normal

- name: Publish
run: dotnet publish -c Release src/ProjectAssets.CLI --no-build -o out /p:Version=${VERSION}
- name: Publish to linux x64
run: dotnet publish -c Release src/ProjectAssets.CLI -r linux-x64 --self-contained -p:PublishSingleFile=true -o out/linux-x64 /p:Version=${VERSION}

- name: Publish to win x64
run: dotnet publish -c Release src/ProjectAssets.CLI -r win-x64 --self-contained -p:PublishSingleFile=true -o out/win-x64 /p:Version=${VERSION}

- uses: actions/upload-artifact@v3
with:
name: ast-cli
name: ast-cli.${VERSION}
path: out
retention-days: 1

0 comments on commit 9042f8f

Please sign in to comment.