Files
nix-config/.gitea/workflows/default.yaml
tomoron ca2a2a8e8d
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 7m50s
re-enable iso build and test final auto release
2025-04-15 21:31:38 +02:00

43 lines
1.1 KiB
YAML

name: Build iso when a new version is pushed
run-name: iso building
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: get repo
uses: actions/checkout@v4.2.2
- name: install nix
uses: https://github.com/cachix/install-nix-action@v31
- name: install go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: build iso
run: make iso
- name: get commit tag
id: vars
run: echo "TAG=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: create tag
run: |
git config user.name "gitea-actions"
git config user.email "actions@gitea.com"
git tag ${{steps.vars.outputs.TAG}}
git push origin ${{steps.vars.outputs.TAG}}
- name: create release
uses: https://gitea.com/actions/gitea-release-action@main
with:
tag_name: ${{steps.vars.outputs.TAG}}
server_url: https://git.tmoron.fr
name: ${{steps.vars.outputs.TAG}}
files: |-
nixos.iso
api_key: ${{secrets.RELEASE_TOKEN}}