Add release step to builds
This commit is contained in:
@@ -19,3 +19,21 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Build
|
||||
run: nix run -L ".#${{ matrix.arch }}"
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ matrix.arch }}
|
||||
path: "*.zip"
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: nix-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v8
|
||||
- name: Create release
|
||||
uses: actions/gitea-release-action@v1
|
||||
with:
|
||||
files: |-
|
||||
"*.zip"
|
||||
|
||||
Reference in New Issue
Block a user