add tag to release step

This commit is contained in:
2025-04-15 20:00:48 +02:00
parent de34ac63af
commit 7887f3c650

View File

@ -20,17 +20,22 @@ jobs:
#- name: build iso #- name: build iso
# run: make iso # run: make iso
- name: Create tag - name: get commit tag
id: vars
run: echo "TAG=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: create tag
run: | run: |
TAG=$(git rev-parse --short HEAD) TAG=$(git rev-parse --short HEAD)
git config user.name "github-actions" git config user.name "github-actions"
git config user.email "actions@github.com" git config user.email "actions@github.com"
git tag $TAG git tag ${{steps.vars.outputs.TAG}}
git push origin $TAG git push origin ${{steps.vars.outputs.TAG}}
- name: create release - name: create release
uses: https://gitea.com/actions/release-action@main uses: https://gitea.com/actions/release-action@main
with: with:
tag_name: ${{steps.vars.outputs.TAG}}
files: |- files: |-
flake.nix flake.nix
api_key: '${{secrets.RELEASE_TOKEN}}' api_key: '${{secrets.RELEASE_TOKEN}}'