Skip to content

Commit

Permalink
Versuche ersten Release-Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed Jun 17, 2022
1 parent 46ef9fd commit cc48e34
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: 'v$RESOLVED_VERSION $(date +%Y-%m-%d)'
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'Eingeführt'
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,37 @@ jobs:
run: |
git config user.email "actions-bot@github.com"
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/upload-release-asset@v1.0.1
# 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:
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 }}

0 comments on commit cc48e34

Please sign in to comment.