Create release draft #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release draft | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
prepare-release: | |
name: Prepare release draft | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Download artefacts | |
uses: actions/download-artifact@v3 | |
- name: Create release notes | |
run: | | |
cat > release_notes.md <<EOF | |
## Release notes | |
EOF | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
draft: true | |
prerelease: false | |
body_path: release_notes.md |