Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vunb committed Nov 5, 2024
1 parent e4ecd42 commit e023885
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on: [push]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
contents: read
contents: write

jobs:
build:
Expand All @@ -42,10 +42,12 @@ jobs:
# run: dotnet test
- name: Publish
run: dotnet publish CloudSync -r linux-x64 -c Release -o Dist
- name: Zip
run: zip -r Dist.zip Dist/ README.md
- name: Upload
# if: github.event_name == 'release' && github.event.action == 'published'
uses: actions/upload-artifact@v4
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: release-linux-${{ github.ref_name }}
path: Dist
name: CloudSync-${{ github.ref_name }}.zip
files: Dist.zip

0 comments on commit e023885

Please sign in to comment.