mirror of
https://github.com/beta-nu-theta-chi/bylaws.git
synced 2025-12-07 11:44:47 +00:00
add auto-release on main (#8)
This commit is contained in:
parent
292f693c37
commit
2ea9cc126f
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
name: Releases
|
name: Releases
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- 'release-*'
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -35,6 +35,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
nix build --experimental-features "nix-command flakes" .#deploy
|
nix build --experimental-features "nix-command flakes" .#deploy
|
||||||
|
- name: Get current datetime
|
||||||
|
id: datetime
|
||||||
|
run: echo "now=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: "result/pdf/*,result/*.tar.gz"
|
artifacts: "result/pdf/*,result/*.tar.gz"
|
||||||
|
tag: release-${{ steps.datetime.outputs.now }}-${{ github.run_number }}
|
||||||
|
name: ${{ steps.datetime.outputs.now }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user