-
Notifications
You must be signed in to change notification settings - Fork 23
55 lines (46 loc) · 1.62 KB
/
create-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
52
53
54
55
name: Release-Veröffentlichung
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 1,4,7,10 *'
jobs:
procedure-perform-release:
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Configure git user
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions (run by ${{ github.actor }})"
- uses: release-drafter/release-drafter@v5
id: draft_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.draft_release.outputs.upload_url }}
# asset_path: ./my-artifact.zip
# asset_name: my-artifact.zip
# asset_content_type: application/zip
- name: Update CHANGELOG
uses: stefanzweifel/changelog-updater-action@v1
id: update_changelog
with:
release-notes: ${{ steps.draft_release.outputs.body }}
latest-version: ${{ steps.draft_release.outputs.tag_name }}
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Aktualisiere CHANGELOG
file_pattern: CHANGELOG.md
tagging_message: ${{ steps.draft_release.outputs.tag_name }}
- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.draft_release.outputs.id }}