Skip to content

Commit

Permalink
feat: add auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikatsuto committed Jun 15, 2024
1 parent eb4c7bf commit 8fa5786
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

on:
push:
branches:
Expand All @@ -18,7 +17,15 @@ jobs:
uses: DeterminateSystems/flake-checker-action@v5
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Update Nix Flake Lock
uses: DeterminateSystems/update-flake-lock@v21
- name: Build Nix package
run: nix build
- name: Auto Release
run: |
cd ./src/
NAME=$(echo "${{ github.repository }}" | cut -d "/" -f 1)
tar -czvf ${NAME}.tar.gz *
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ github.token }}"
automatic_release_tag: "latest"
prerelease: false
files: |
${NAME}.tar.gz

0 comments on commit 8fa5786

Please sign in to comment.