Build #2
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: ['workflow_dispatch'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Install FontForge | |
run: sudo apt-get install fontforge | |
- name: Cache Icons | |
uses: actions/cache@v4 | |
with: | |
path: packages/icons-webfont/icons-outlined | |
key: ${{ runner.os }}-icons-outlined | |
- name: Build | |
run: 'pnpm build:webfont' | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: wf-dist | |
FOLDER: packages/icons-webfont | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Tag on Dist Branch | |
if: github.event.inputs.version | |
run: | | |
git checkout wf-dist | |
git tag v$(git log --oneline | wc -l) | |
git push origin wf-dist --tags |