From f8e850ede1a64c7d63bad3bafd32f0465ea074ce Mon Sep 17 00:00:00 2001 From: perl_d Date: Tue, 6 May 2025 14:26:14 +0200 Subject: [PATCH] add action --- .gitea/workflows/release.yml | 28 ++++++++++++++++++++++++++++ copier.yml | 3 +++ 2 files 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..dd23081 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,28 @@ +name: release +on: + push: + branches: + - main + - feat/release_actions + +permissions: + contents: read + +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: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: npx semantic-release --branches main,feat/release_actions --dry-run \ No newline at end of file diff --git a/copier.yml b/copier.yml index 592ce9e..944f339 100644 --- a/copier.yml +++ b/copier.yml @@ -1,3 +1,6 @@ +_exclude: + - ".gitea/" + # predefined values # make sure these have 'when: false' so that the questions are not asked and the items are not saved in answers.yml