Build only after pushing to a branch
All checks were successful
Build / audit (push) Successful in 6s
Build / test (push) Successful in 7m23s
Build / doc (push) Successful in 7m22s

This commit is contained in:
Eugen Wissner 2024-07-26 09:30:38 +02:00
parent 7295681440
commit ce5fa260f4
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
3 changed files with 22 additions and 0 deletions

3
.gitea/deploy.awk Normal file
View File

@ -0,0 +1,3 @@
END {
system("cabal upload --username belka --password "ENVIRON["HACKAGE_PASSWORD"]" "$0)
}

View File

@ -2,6 +2,8 @@ name: Build
on:
push:
branches:
- '**'
pull_request:
branches: [master]

View File

@ -0,0 +1,17 @@
name: Release
on:
push:
tags:
- '**'
jobs:
release:
runs-on: buildenv
steps:
- uses: actions/checkout@v4
- name: Upload a candidate
env:
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
run: |
cabal sdist | awk -f .gitea/deploy.awk