Draft a Release #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
# This creates a Release Draft | |
# Adjust the release message in the web GUI and publish the release there. | |
name: Draft a Release | |
on: | |
workflow_dispatch: | |
jobs: | |
setup-release-draft: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch repo | |
uses: actions/checkout@v4 | |
- name: Fetch dependencies | |
run: | | |
sudo apt update -y -q | |
sudo apt install python3-fontforge jq nodejs wkhtmltopdf -y -q | |
npm install nunjucks | |
- name: Determine version | |
id: rel_ver | |
run: | | |
REL_VERSION=$(jq -r '.version' package.json) | |
echo "Release version ${REL_VERSION}" | |
echo "ver=${REL_VERSION}" >> $GITHUB_OUTPUT | |
- name: Create the assets | |
run: | | |
make | |
- name: Crate archive | |
id: archive | |
run: | | |
make pack | |
ZIPFILE=$(ls font-logos-*zip ) | |
echo "ZIPFILE=${ZIPFILE}" | |
echo "filename=${ZIPFILE}" >> $GITHUB_OUTPUT | |
- name: Adjust release tag | |
uses: EndBug/latest-tag@v1.6.1 | |
with: | |
ref: "v${{ steps.rel_ver.outputs.ver }}" | |
- name: Create release draft | |
uses: softprops/action-gh-release@v0.1.15 | |
with: | |
draft: true | |
tag_name: "v${{ steps.rel_ver.outputs.ver }}" | |
files: | | |
${{ steps.archive.outputs.filename }} | |
generate_release_notes: true |