1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

ci: create tags from Crate version

This commit is contained in:
NotAShelf 2025-05-14 03:49:44 +03:00
parent 6f26a98b37
commit 78490f7c08
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

31
.github/workflow/tag.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Create Tag from Crate Version
concurrency: tag
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@master
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
- name: Read Version
run: |
echo -n "version=v" >> "$GITHUB_ENV"
nix run nixpkgs#fq -- -r ".package.version" Cargo.toml >> "$GITHUB_ENV"
cat "$GITHUB_ENV"
- name: Create Tag
run: |
set -x
git tag $version
git push --tags || :