-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.39 KB
/
create-new-fancy-release.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
46
47
48
49
50
51
name: Create Tag & Fancy Release
on:
workflow_dispatch:
permissions:
contents: write
jobs:
tag-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Necessary for scripts to access all tags and .github/release.yml
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install PyYAML
- name: Calculate next tag
id: next-tag
run: echo "tag=$(python .github/scripts/calculate_next_tag.py)" >> $GITHUB_OUTPUT
shell: bash
- name: Create the new tag
run: |
git config user.name github-actions
git config user.email [email protected]
git tag ${{ steps.next-tag.outputs.tag }}
git push origin ${{ steps.next-tag.outputs.tag }}
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false
append_body: true
make_latest: true
generate_release_notes: true
body: ""
tag_name: ${{ steps.next-tag.outputs.tag }}
name: ${{ steps.next-tag.outputs.tag }}
# body: ${{ steps.generate-notes.outputs.notes }}