Release #34
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: Release | |
# manual only kick off | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Download artifacts from latest workflow | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: build.yml | |
workflow_conclusion: success | |
- name: 🔍 view artifacts to be used | |
run: ls -R | |
working-directory: . | |
- name: 🔢 set version environment variable | |
run: | | |
echo "VERSION=$(cat bin/version.txt | xargs)" >> "$GITHUB_ENV" | |
- name: 🔢 prep release notes | |
run: | | |
grep -m 2 -B 1000 '^## ' bin/release-notes.md | tail -n +3 | head -n -2 > final_notes.md | |
cat bin/instructions.md >> final_notes.md | |
cat final_notes.md | |
# /~https://github.com/softprops/action-gh-release | |
- name: 📦 create release | |
uses: softprops/action-gh-release@v1 | |
if: github.ref == 'refs/heads/master' | |
with: | |
tag_name: ${{ env.VERSION }} | |
name: ${{ env.VERSION }} | |
files: | | |
bin/bt-*.* | |
body_path: final_notes.md |