Skip to content

2.0.11

2.0.11 #37

Workflow file for this run

name: Release System Version
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm i
- run: pnpm run build
# create a release with the tag name and the build artifacts (./dist/icon_map.sh and ./dist/sketchybar-app-font.ttf)
# the description should be the commitlog since the last tag
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} v${tag#v}" \
--generate-notes
gh release upload "$tag" \
--repo="$GITHUB_REPOSITORY" \
--clobber \
./dist/icon_map.sh \
./dist/sketchybar-app-font.ttf