forked from bakaq/bakage
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 828 Bytes
/
release.yml
File metadata and controls
36 lines (33 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
main-release:
if: github.ref_type == 'branch' && github.ref_name == 'main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Build Bakage
run: |
nix develop --ignore-env --command \
just build
- name: Update tag
run: |
git push origin :refs/tags/main-release
git tag -f main-release
git push origin --tags
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: main-release
draft: false
prerelease: true
files: ./build/bakage.pl