add auto-release on main (#8)

This commit is contained in:
tnichols217 2025-10-26 19:39:09 +00:00 committed by GitHub
parent 292f693c37
commit 2ea9cc126f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -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 }}

View File

@ -21,6 +21,7 @@
stringi stringi
]; ];
p = with pkgs; [ p = with pkgs; [
act
podman-compose podman-compose
podman podman
(quarto.override { (quarto.override {