From a28b09bcd252ed55f1595885c66d0cbc4c566226 Mon Sep 17 00:00:00 2001 From: Hugo Josefson Date: Sun, 27 Oct 2024 00:14:51 +0200 Subject: [PATCH] chore: auto-release from main branch --- .github/workflows/publish.yaml | 29 ----------------------------- .github/workflows/release.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 448b08c..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: Publish - -on: - push: - tags: - - "0*" - - "1*" - - "2*" - - "3*" - - "4*" - - "5*" - - "6*" - - "7*" - - "8*" - - "9*" - -jobs: - publish: - runs-on: ubuntu-latest - - permissions: - contents: read - id-token: write - - steps: - - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v2 - - name: Publish package - run: deno publish diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..3f55d7f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,29 @@ +name: release + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: write + id-token: write + + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v2 + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Release a new version + run: deno task release + + - name: Publish the new version + run: deno publish