Skip to content

Commit

Permalink
ci/nit: add release workflow (+ ignore vscode folder)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjindael committed Jul 27, 2023
1 parent a3d02af commit a5e0308
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,37 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0

- name: Build
run: dotnet publish -r ${{ matrix.platform }} -c Release --no-self-contained -p:PublishDir=../publish/${{ matrix.platform }}

- name: Upload
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}
path: publish/${{ matrix.platform }}/*
path: publish/${{ matrix.platform }}/*

release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tag/v')

steps:
- name: Download release artifacts
uses: actions/download-artifact@v2
with:
path: x64

- name: Rename artifacts
run: |
mv x64/win-x64.zip toolbox-${{ github.ref_name }}-win-x64.zip
mv x64/linux-x64.zip toolbox-${{ github.ref_name }}-linux-x64.zip
- name: Create release draft
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}
draft: true
files: |
toolbox-${{ github.ref_name }}-win-x64.zip
toolbox-${{ github.ref_name }}-linux-x64.zip
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

.vscode/

# User-specific files
*.rsuser
*.suo
Expand Down

0 comments on commit a5e0308

Please sign in to comment.