Adding a bit of js to reduce font size when content doesn't fit. Vers… #41
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: Build | |
on: | |
push: | |
branches: [ "master" ] | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: '20' | |
- name: Run CI | |
run: npm ci | |
- name: Build | |
run: npm run build --if-present | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: digsig | |
path: build | |
release: | |
needs: build | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
name: Create Release | |
steps: | |
- name: Download artifact from build job | |
uses: actions/download-artifact@v4 | |
with: | |
name: digsig | |
path: build-rel | |
- name: Extract tag name | |
id: extract_tag | |
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: Create Release ZIP | |
run: | | |
cd build-rel | |
zip -r ../digsig-${{ env.TAG }}.zip ./* | |
- name: Create GitHub Release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.TAG }} | |
name: ${{ env.TAG }} | |
draft: true | |
prerelease: false | |
generate_release_notes: true | |
files: digsig-${{ env.TAG }}.zip |