From d1072d8a810237dfe9d2ccb8509eb44b3ccbe556 Mon Sep 17 00:00:00 2001 From: Emma Date: Tue, 6 May 2025 19:22:25 -0600 Subject: [PATCH] setup ci --- .gitea/workflows/build-and-release.yml | 30 ++++++++++++++++++++++++++ .gitea/workflows/tag-cli.yml | 13 +++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .gitea/workflows/build-and-release.yml create mode 100644 .gitea/workflows/tag-cli.yml diff --git a/.gitea/workflows/build-and-release.yml b/.gitea/workflows/build-and-release.yml new file mode 100644 index 0000000..bce1add --- /dev/null +++ b/.gitea/workflows/build-and-release.yml @@ -0,0 +1,30 @@ +name: Build and Release + +on: + push: + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and release binaries + uses: bearmetal/ci-actions/deno-publish@main + with: + entrypoint: main.ts + compile-flags: "--allow-read --allow-write --allow-env --allow-net" + + publish: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Deno + uses: denoland/setup-deno@v1 + with: + deno-version: 2.3.1 + + - name: Publish to JSR + run: deno publish --token ${{ secrets.JSR_TOKEN }} diff --git a/.gitea/workflows/tag-cli.yml b/.gitea/workflows/tag-cli.yml new file mode 100644 index 0000000..579cdc0 --- /dev/null +++ b/.gitea/workflows/tag-cli.yml @@ -0,0 +1,13 @@ +name: Create Version Tag + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bearmetal/ci-actions/version-check@main