diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-07-26 09:30:38 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-07-26 09:30:38 +0200 |
| commit | ce5fa260f401528c8673132bfc85efbab02a4fa1 (patch) | |
| tree | 2f18f08b32714a7efd91b92323ac1a04657fc369 | |
| parent | 7295681440809103392bd11470dd3e3601dc5c82 (diff) | |
| download | graphql-spice-ce5fa260f401528c8673132bfc85efbab02a4fa1.tar.gz | |
Build only after pushing to a branch
| -rw-r--r-- | .gitea/deploy.awk | 3 | ||||
| -rw-r--r-- | .gitea/workflows/build.yml | 2 | ||||
| -rw-r--r-- | .gitea/workflows/release.yml | 17 |
3 files changed, 22 insertions, 0 deletions
diff --git a/.gitea/deploy.awk b/.gitea/deploy.awk new file mode 100644 index 0000000..ed542f0 --- /dev/null +++ b/.gitea/deploy.awk @@ -0,0 +1,3 @@ +END { + system("cabal upload --username belka --password "ENVIRON["HACKAGE_PASSWORD"]" "$0) +} diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1d02288..ebb81c3 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -2,6 +2,8 @@ name: Build on: push: + branches: + - '**' pull_request: branches: [master] diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..08e90c2 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -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 |
