From 018987c49d2b2f7446dc8901a6206b9ffb7fe448 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Thu, 26 Sep 2024 01:23:16 +0200 Subject: [PATCH] add release --- .../{validate.yaml => integration.yaml} | 9 +------ .gitea/workflows/release.yaml | 25 +++++++++++++++++++ README.md | 2 +- 3 files changed, 27 insertions(+), 9 deletions(-) rename .gitea/workflows/{validate.yaml => integration.yaml} (81%) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/validate.yaml b/.gitea/workflows/integration.yaml similarity index 81% rename from .gitea/workflows/validate.yaml rename to .gitea/workflows/integration.yaml index 9e1202d..de8af6f 100644 --- a/.gitea/workflows/validate.yaml +++ b/.gitea/workflows/integration.yaml @@ -1,27 +1,20 @@ -name: Validate +name: Integration on: push: branches: main pull_request: branches: main - jobs: validate: - name: Validate runs-on: ubuntu-latest - permissions: - id-token: write # Needed for auth with Deno Deploy contents: read # Needed to clone the repository - steps: - name: Clone repository uses: actions/checkout@v3 - - name: Install Deno uses: denoland/setup-deno@v1 with: deno-version: v1.x - - name: Check run: "deno task check" diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..1f44cf9 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Release +on: + push: + tags: + - '*' +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read # Needed to clone the repository + steps: + - name: Clone + uses: actions/checkout@v3 + - name: Install Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + - name: Compile + run: "deno task compile" + - name: Release + uses: ncipollo/release-action@v1 + with: + artifacts: "bunker" + + diff --git a/README.md b/README.md index 65255d2..ca9fdef 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Bunker -![](https://git.sfja.dk/sfj/bunker/actions/workflows/validate.yaml/badge.svg) +![](https://git.sfja.dk/sfj/bunker/actions/workflows/integration.yaml/badge.svg)