From c683d5d254e5cbe93063da6c88a1d764b8515774 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Thu, 26 Sep 2024 02:55:03 +0200 Subject: [PATCH] add on commit build --- .gitea/workflows/integration.yaml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.gitea/workflows/integration.yaml b/.gitea/workflows/integration.yaml index 89283a9..016db41 100644 --- a/.gitea/workflows/integration.yaml +++ b/.gitea/workflows/integration.yaml @@ -6,6 +6,7 @@ on: branches: main jobs: validate: + name: Validate runs-on: ubuntu-latest permissions: contents: read # Needed to clone the repository @@ -20,3 +21,36 @@ jobs: - name: Check run: "deno task check" + build: + name: Build latest + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Clone + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: '>=1.20.1' + + - name: Compile + run: "deno task compile" + + - name: Release + id: use-go-action + uses: "https://gitea.com/actions/release-action@main" + with: + files: "bunker" + api_key: '${{secrets.GITEA_TOKEN}}' + tag_name: "latest" + prerelease: true +