Files
nix-config/.gitea/workflows/default.yaml
tomoron de34ac63af
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13s
create tag automatically on push
2025-04-15 19:54:43 +02:00

37 lines
898 B
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: Create tag
run: |
TAG=$(git rev-parse --short HEAD)
git config user.name "github-actions"
git config user.email "actions@github.com"
git tag $TAG
git push origin $TAG
- name: create release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
flake.nix
api_key: '${{secrets.RELEASE_TOKEN}}'