Debian Codegraph @

.github/workflows/release-publish.yml

raw
1 name: Release Publisher
2
3 on:
4 push:
5 tags:
6 - "*.*.*"
7
8 permissions:
9 contents: read
10
11 jobs:
12 publish_release:
13 if: github.repository == 'dask/dask'
14 permissions:
15 # Write permission is required to publish a GitHub release
16 contents: write
17 pull-requests: read
18 runs-on: ubuntu-latest
19 steps:
20 - name: Set version env
21 # Use a little bit of bash to extract the tag name from the GitHub ref
22 run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
23 - uses: release-drafter/release-drafter@v6
24 with:
25 disable-autolabeler: true
26 # Override the Release name/tag/version with the actual tag name
27 name: ${{ env.RELEASE_VERSION }}
28 tag: ${{ env.RELEASE_VERSION }}
29 version: ${{ env.RELEASE_VERSION }}
30 # Publish the Release
31 publish: true
32 env:
33 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}