-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (43 loc) · 1.3 KB
/
release_draft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Draft release
on:
push:
branches: [main]
workflow_dispatch:
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5.21.0
id: release-draft
with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASEBOT_TOKEN }}
- name: Update setup.py
env:
VERSION: ${{ steps.release-draft.outputs.tag_name }}
run: |
echo "Bumping version to ${VERSION}"
echo "${VERSION}" > VERSION
git config user.name github-actions
git config user.email github-actions@github.com
git add VERSION
if git commit -m "Updating VERSION to ${VERSION}"; then
git push -f
echo "Pushed update to main"
fi
update_docs:
runs-on: ubuntu-latest
needs: update_release_draft
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish Docs
uses: ./
with:
version: dev