dhbw-abb-typst-template/.github/workflows/release.yml

31 lines
724 B
YAML
Raw Normal View History

2024-08-27 19:20:17 +00:00
name: release
2024-07-19 07:45:23 +00:00
on:
push:
tags:
2024-08-27 19:20:17 +00:00
- 'v*.*.*'
2024-07-19 07:45:23 +00:00
jobs:
2024-08-27 19:20:17 +00:00
release:
2024-07-19 07:45:23 +00:00
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
2024-08-27 19:20:17 +00:00
- name: Setup Nix
uses: cachix/install-nix-action@v27
2024-07-19 07:45:23 +00:00
with:
2024-08-27 19:20:17 +00:00
nix_path: nixpkgs=channel:nixos-unstable
2024-07-19 07:45:23 +00:00
- name: Run CI
2024-08-27 19:20:17 +00:00
run: nix-shell --run ./run-ci.sh
- name: Setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Create release
id: create-release
uses: https://gitea.com/actions/release-action@main
2024-07-19 07:45:23 +00:00
with:
2024-08-27 19:20:17 +00:00
files: |-
example.pdf
api_key: '${{secrets.RELEASE_TOKEN}}'