From 0777e5b9f852301ada841527385ee4147d8019b6 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Tue, 13 Jun 2023 18:22:04 +0100 Subject: [PATCH] CI fix --- .github/workflows/ci.yml | 5 +---- .github/workflows/github-release.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/github-release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7851a21..62550f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,7 @@ on: name: CI -permissions: - contents: read - pages: write - id-token: write +permissions: write-all jobs: publish: diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 0000000..20d2ce5 --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,23 @@ +on: + workflow_dispatch: + +name: GitHub Release + +permissions: write-all + +jobs: + publish: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: CSchoel/release-notes-from-changelog@v1 + - name: Create Release using GitHub CLI + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: > + gh release create + -d + -F RELEASE.md + -t "Version $RELEASE_VERSION" + ${GITHUB_REF#refs/*/}