From 464e9b09899a7008222b3622a1592930159d554e Mon Sep 17 00:00:00 2001 From: riccardopinosio Date: Thu, 1 Feb 2024 18:35:13 +0100 Subject: [PATCH] test --- .github/workflows/release.yaml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5d532bc..21eb45a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,20 +1,26 @@ # https://docs.github.com/en/actions -name: Releases +name: Create release -on: +on: push: tags: - - '*' + - v* + +permissions: + contents: write jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: write + release: + name: Release pushed tag + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: ncipollo/release-action@v1 - with: - artifacts: "release.tar.gz,foo/*.txt" - bodyFile: "body.md" \ No newline at end of file + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref_name }} + run: | + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \ + --generate-notes \ No newline at end of file