mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-17 00:03:46 +00:00
ci: tag releases automatically
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a6964dc061848bfbda520a4e311c3f9558557
This commit is contained in:
parent
2bbd8d11c2
commit
7857dc2d2d
2 changed files with 22 additions and 2 deletions
5
.github/workflows/nix-cache.yaml
vendored
5
.github/workflows/nix-cache.yaml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
populate-cache:
|
populate-cache:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "CHeckout"
|
- name: "Checkout"
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
|
|
@ -25,4 +25,5 @@ jobs:
|
||||||
name: nyx
|
name: nyx
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
- run: nix build
|
- name: "Build with Nix"
|
||||||
|
run: nix build
|
||||||
|
|
|
||||||
19
.github/workflows/release.yaml
vendored
19
.github/workflows/release.yaml
vendored
|
|
@ -9,7 +9,26 @@ permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
tag-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Read version
|
||||||
|
run: |
|
||||||
|
echo -n "stash_version=v" >> "$GITHUB_ENV"
|
||||||
|
nix run nixpkgs#fq -- -r '.package.version' Cargo.toml >> "$GITHUB_ENV"
|
||||||
|
cat "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Tag
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
git tag $ndg_version
|
||||||
|
git push --tags || :
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
|
needs: tag-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue