1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-25 20:18:01 +02:00
nerd-fonts/.github/workflows/release_master_fontpatcher-zip.yaml

40 lines
994 B
YAML
Raw Normal View History

2023-01-09 21:55:47 +02:00
name: Release font patcher from master
on:
create:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v3
- name: Grab the script and its dependencies from the repo
run: |
#!/bin/sh
git clone \
--depth 1 \
--single-branch \
--quiet --progress \
--no-checkout \
https://oauth2:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}
cd nerd-fonts && git checkout HEAD src font-patcher
- run: rm -fR nerd-fonts/src/unpatched-fonts
- run: zip -r fontpatcher.zip nerd-fonts/*
- run: git config user.name "Github Actions" && git config user.email "actions@github.com"
working-directory: nerd-fonts
- working-directory: nerd-fonts
run: cp -f ../fontpatcher.zip . && git add fontpatcher.zip && git commit -m"Update fontpatcher.zip"
- uses: mxschmitt/action-tmate@v3