From 1e1305b5ad177695371ea47c6c53198b8efe69f5 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 25 Sep 2024 13:52:15 +0200 Subject: [PATCH 1/3] feat: add release workflow for Gitea integration --- .gitea/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..1c29ae9 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release +on: + push: + branches: + - main + +env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + +permissions: + contents: read # for checkout + +concurrency: + group: ${{ github.ref }} # Ensure each branch has its own group + cancel-in-progress: false # Prevent new runs from canceling in-progress runs + +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for npm provenance + steps: + - name: Create Release + uses: https://git.kjan.de/actions/semantic-release@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} -- 2.45.2 From 5cf06ee2670c65b7903729415d1d223dd5bd0e3d Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 25 Sep 2024 13:54:50 +0200 Subject: [PATCH 2/3] build: add release configuration file --- release.config.cjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 release.config.cjs diff --git a/release.config.cjs b/release.config.cjs new file mode 100644 index 0000000..5e3a933 --- /dev/null +++ b/release.config.cjs @@ -0,0 +1,12 @@ +module.exports = { + + branches: ['master'], + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/changelog', + ["@saithodev/semantic-release-gitea", { + "giteaUrl": "https://git.kjan.de" + }], + ], +}; -- 2.45.2 From a3eca190f024229235463492ba7a7f2c426f0e9f Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 25 Sep 2024 13:55:42 +0200 Subject: [PATCH 3/3] chore: update branch name from master to main --- release.config.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.config.cjs b/release.config.cjs index 5e3a933..375ccd5 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -1,6 +1,6 @@ module.exports = { - branches: ['master'], + branches: ['main'], plugins: [ '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', -- 2.45.2