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
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -1,8 +1,8 @@
|
||||
name: Releases
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'release-*'
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
@ -35,6 +35,11 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
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
|
||||
with:
|
||||
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