2021-12-24 13:06:20 +02:00
|
|
|
# triggers a release or a release candidate based on the version defined in package.json
|
2021-11-21 18:08:35 +02:00
|
|
|
|
2021-12-24 13:06:20 +02:00
|
|
|
name: Release
|
2021-11-21 18:08:35 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
2021-11-26 17:49:18 +02:00
|
|
|
paths-ignore:
|
|
|
|
- 'images/**'
|
|
|
|
- '**.md'
|
|
|
|
- '.all-contributorsrc'
|
|
|
|
- 'chocolatey/**'
|
|
|
|
- 'bin/scripts/lib/**'
|
|
|
|
- 'Dockerfile'
|
|
|
|
- 'install.ps1'
|
|
|
|
- 'install.sh'
|
|
|
|
- 'LICENSE'
|
2021-11-21 18:08:35 +02:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2021-11-26 16:46:46 +02:00
|
|
|
setup-fonts-matrix:
|
|
|
|
runs-on: ubuntu-latest
|
2022-12-04 13:28:01 +02:00
|
|
|
# If you have a fork and want to run the release workflow, adapt this line:
|
|
|
|
if: ${{ github.repository_owner == 'ryanoasis' }}
|
2021-11-26 16:46:46 +02:00
|
|
|
|
|
|
|
steps:
|
2022-08-24 08:43:33 +02:00
|
|
|
# Faster version instead of - uses: actions/checkout@v3
|
|
|
|
- uses: Bhacaz/checkout-files@v2
|
|
|
|
with:
|
|
|
|
files: package.json bin/scripts/get-font-names-from-json.sh bin/scripts/lib/fonts.json
|
|
|
|
branch: ${{ github.head_ref || github.ref_name }}
|
2022-08-24 19:49:25 +02:00
|
|
|
|
2022-08-24 09:49:32 +02:00
|
|
|
- name: Determine font matrix
|
2021-11-26 16:46:46 +02:00
|
|
|
id: set-matrix
|
|
|
|
run: |
|
|
|
|
cd -- $GITHUB_WORKSPACE/bin/scripts/
|
2022-08-24 08:43:33 +02:00
|
|
|
chmod u+x get-font-names-from-json.sh
|
2021-11-26 16:46:46 +02:00
|
|
|
fontNames=$(./get-font-names-from-json.sh)
|
2021-11-26 17:08:59 +02:00
|
|
|
echo "${fontNames}"
|
2022-10-13 16:28:02 +02:00
|
|
|
echo "matrix=${fontNames}" >> $GITHUB_OUTPUT
|
2021-11-26 16:46:46 +02:00
|
|
|
|
2022-08-24 08:10:46 +02:00
|
|
|
- name: Fetch release version
|
|
|
|
id: rel_ver
|
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE"
|
|
|
|
echo "Contents of package.json:"
|
|
|
|
cat package.json
|
2022-08-26 07:33:56 +02:00
|
|
|
RELEASE_VERSION=$(jq '.version' package.json | sed 's/[ ",]//g')
|
2022-10-13 16:28:02 +02:00
|
|
|
echo "val=$RELEASE_VERSION" >> $GITHUB_OUTPUT
|
2022-08-24 08:10:46 +02:00
|
|
|
|
|
|
|
- name: Determine candidate status
|
|
|
|
id: rel_can
|
|
|
|
run: |
|
2022-10-13 16:28:02 +02:00
|
|
|
[[ "${{ steps.rel_ver.outputs.val }}" == *"-RC"* ]] && echo "val=true" || echo "val=false" >> $GITHUB_OUTPUT
|
2022-08-24 08:10:46 +02:00
|
|
|
|
2022-08-24 19:49:25 +02:00
|
|
|
- name: Determine new release or re-release
|
|
|
|
# If the tag exists it is obviously a re-release
|
|
|
|
|
|
|
|
# This would need a complete checkout, that we want to avoid
|
|
|
|
# uses: mukunku/tag-exists-action@v1.0.0
|
|
|
|
# with:
|
2022-08-25 14:16:31 +02:00
|
|
|
# tag: "v${{ steps.rel_ver.outputs.val }}"
|
2022-08-24 19:49:25 +02:00
|
|
|
# env:
|
|
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
id: rel_pre_existing
|
|
|
|
run: |
|
2022-08-25 14:16:31 +02:00
|
|
|
curl -v "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/tags" | jq '.[].name' | grep '^"v${{ steps.rel_ver.outputs.val }}"$' \
|
2022-10-13 16:28:02 +02:00
|
|
|
&& echo "exists=true" || echo "exists=false" >> $GITHUB_OUTPUT
|
2022-08-24 19:49:25 +02:00
|
|
|
echo "Tag exists: ${{ steps.rel_pre_existing.outputs.exists }}"
|
|
|
|
|
|
|
|
- name: Upload release only on first trigger for release and always on release candidate
|
|
|
|
id: upload
|
|
|
|
# Upload release when:
|
|
|
|
# * This is a new (previously untagged) release
|
|
|
|
# * This is a release candidate
|
|
|
|
run: |
|
2022-10-13 16:28:02 +02:00
|
|
|
[[ "${{ steps.rel_can.outputs.val }}" == "true" || "${{ steps.rel_pre_existing.outputs.exists }}" == "false" ]] && echo "val=true" || echo "val=false" >> $GITHUB_OUTPUT
|
2022-08-24 19:49:25 +02:00
|
|
|
|
|
|
|
- name: Show outputs
|
|
|
|
run: |
|
|
|
|
echo "rel_version: ${{ steps.rel_ver.outputs.val }}"
|
|
|
|
echo "rel_candidate: ${{ steps.rel_can.outputs.val }}"
|
|
|
|
echo "rel_pre_existing: ${{ steps.rel_pre_existing.outputs.exists }}"
|
|
|
|
echo "rel_upload: ${{ steps.upload.outputs.val }}"
|
|
|
|
|
2021-11-26 16:46:46 +02:00
|
|
|
outputs:
|
|
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
2022-08-24 08:10:46 +02:00
|
|
|
rel_version: ${{ steps.rel_ver.outputs.val }}
|
|
|
|
rel_candidate: ${{ steps.rel_can.outputs.val }}
|
2022-08-24 19:49:25 +02:00
|
|
|
rel_pre_existing: ${{ steps.rel_pre_existing.outputs.exists }}
|
|
|
|
rel_upload: ${{ steps.upload.outputs.val }}
|
2021-11-26 16:46:46 +02:00
|
|
|
|
2021-11-21 18:08:35 +02:00
|
|
|
# Workflow to build and install dependencies
|
|
|
|
build:
|
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2021-11-26 17:08:59 +02:00
|
|
|
needs: setup-fonts-matrix
|
|
|
|
|
2021-11-21 18:08:35 +02:00
|
|
|
env:
|
|
|
|
GITHUB_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-08-25 14:16:31 +02:00
|
|
|
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
2022-08-24 08:10:46 +02:00
|
|
|
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
2021-11-21 18:08:35 +02:00
|
|
|
|
2021-11-26 16:46:46 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
font: ${{fromJson(needs.setup-fonts-matrix.outputs.matrix)}}
|
|
|
|
|
2021-11-21 18:08:35 +02:00
|
|
|
steps:
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
2022-08-18 16:35:46 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-24 08:10:46 +02:00
|
|
|
- name: Check release variables
|
2021-12-24 13:06:20 +02:00
|
|
|
run: |
|
2022-08-25 14:16:31 +02:00
|
|
|
echo "$RELEASE_VERSION"
|
2022-08-24 08:10:46 +02:00
|
|
|
echo "Candidate: $RELEASE_CANDIDATE"
|
2022-08-24 19:49:25 +02:00
|
|
|
echo "Publish/refresh release: ${{ needs.setup-fonts-matrix.outputs.rel_upload }}"
|
2021-12-24 13:06:20 +02:00
|
|
|
|
2021-11-21 18:08:35 +02:00
|
|
|
# Install and setup Dependencies
|
2021-11-26 16:46:46 +02:00
|
|
|
# @TODO cache the next 4 steps with actions/cache or upload
|
2021-11-21 18:08:35 +02:00
|
|
|
- name: Setup core dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update -y -q
|
|
|
|
sudo apt install software-properties-common -y -q
|
|
|
|
sudo apt install python3-fontforge -y -q
|
|
|
|
|
2022-08-18 14:47:34 +02:00
|
|
|
# Ubuntu 20.04 has only fontforge release 2020, but there are some vital bugfixes in the 2022 release
|
|
|
|
# This can be replaced with the ordinary apt package when Ubuntu updates, probably with 22.10?
|
2022-08-19 12:57:42 +02:00
|
|
|
- name: Fetch FontForge
|
2022-08-18 14:47:34 +02:00
|
|
|
run: |
|
2022-08-19 12:57:42 +02:00
|
|
|
curl -L "https://github.com/fontforge/fontforge/releases/download/20220308/FontForge-2022-03-08-582bd41-x86_64.AppImage" \
|
|
|
|
--output fontforge
|
|
|
|
chmod u+x fontforge
|
|
|
|
echo Try appimage
|
|
|
|
./fontforge --version
|
|
|
|
export PATH=`pwd`:$PATH
|
|
|
|
echo "PATH=$PATH" >> $GITHUB_ENV
|
|
|
|
echo Try appimage with path
|
|
|
|
fontforge --version
|
2022-08-18 14:47:34 +02:00
|
|
|
|
2022-08-23 15:24:32 +02:00
|
|
|
# It is unclear what this has been needed for
|
2021-11-21 18:08:35 +02:00
|
|
|
- name: Setup additional dependencies
|
2022-08-23 15:24:32 +02:00
|
|
|
if: false
|
2021-11-21 18:08:35 +02:00
|
|
|
run: |
|
|
|
|
pip install fonttools --quiet
|
|
|
|
|
2022-08-23 15:24:32 +02:00
|
|
|
# It is unclear what this has been needed for
|
2021-11-21 18:08:35 +02:00
|
|
|
- name: Build FreeType from source
|
2022-08-23 15:24:32 +02:00
|
|
|
if: false
|
2021-11-21 18:08:35 +02:00
|
|
|
run: |
|
|
|
|
wget http://downloads.sourceforge.net/project/freetype/freetype2/2.7/freetype-2.7.tar.gz --quiet
|
|
|
|
tar -zxf freetype-2.7.tar.gz
|
|
|
|
cd freetype-2.7
|
|
|
|
./configure
|
|
|
|
make --quiet
|
|
|
|
sudo make install --quiet
|
|
|
|
|
2022-08-23 15:24:32 +02:00
|
|
|
# It is unclear what this has been needed for
|
2021-11-21 18:08:35 +02:00
|
|
|
- name: Build Harfbuzz from source
|
2022-08-23 15:24:32 +02:00
|
|
|
if: false
|
2021-11-21 18:08:35 +02:00
|
|
|
run: |
|
|
|
|
wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.3.4.tar.bz2 --quiet
|
|
|
|
tar -xjf harfbuzz-1.3.4.tar.bz2
|
|
|
|
cd harfbuzz-1.3.4
|
|
|
|
./configure
|
|
|
|
make --quiet
|
|
|
|
sudo make install --quiet
|
|
|
|
|
|
|
|
- name: Verify setup
|
|
|
|
run: |
|
|
|
|
fontforge --version
|
|
|
|
fontforge --version 2>&1 | grep libfontforge | awk '{print $NF}'
|
|
|
|
|
2022-08-23 16:05:46 +02:00
|
|
|
- name: Bump version for source files
|
2021-11-21 18:08:35 +02:00
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
2022-08-25 14:16:31 +02:00
|
|
|
./version-bump.sh "$RELEASE_VERSION"
|
2021-12-31 18:11:51 +02:00
|
|
|
|
|
|
|
- name: Standardize the readme files
|
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
2021-11-26 16:46:46 +02:00
|
|
|
./standardize-and-complete-readmes.sh "${{ matrix.font }}"
|
2021-11-21 18:08:35 +02:00
|
|
|
|
2021-12-24 13:06:20 +02:00
|
|
|
- name: Patch all the variations of the font family
|
2021-11-21 18:08:35 +02:00
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
2022-08-19 12:57:42 +02:00
|
|
|
fontforge --script `pwd`/../../font-patcher --version
|
2022-04-22 13:51:33 +02:00
|
|
|
./gotta-patch-em-all-font-patcher\!.sh "/${{ matrix.font }}"
|
2021-11-21 18:08:35 +02:00
|
|
|
|
2022-08-25 08:59:23 +02:00
|
|
|
- name: Archive font package zip files
|
2021-11-21 18:08:35 +02:00
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
2022-08-25 08:59:23 +02:00
|
|
|
./archive-fonts.sh "${{ matrix.font }}"
|
2021-11-21 18:08:35 +02:00
|
|
|
|
2022-08-23 15:59:54 +02:00
|
|
|
- name: Upload zip file archive for release
|
|
|
|
uses: softprops/action-gh-release@v0.1.14
|
2022-08-24 19:49:25 +02:00
|
|
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
2022-08-23 15:59:54 +02:00
|
|
|
with:
|
2022-08-26 18:01:17 +02:00
|
|
|
draft: true
|
2022-08-23 15:59:54 +02:00
|
|
|
prerelease: ${{ env.RELEASE_CANDIDATE != 'false' }}
|
2022-08-25 14:16:31 +02:00
|
|
|
tag_name: "v${{ env.RELEASE_VERSION }}"
|
2022-08-23 15:59:54 +02:00
|
|
|
files: archives/*
|
2022-01-01 16:47:57 +02:00
|
|
|
|
|
|
|
- name: Upload patched fonts as artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: patched-fonts
|
2022-01-03 10:53:22 +02:00
|
|
|
# adding multiple paths (i.e. LICENSE) is a workaround to get a least common ancestor
|
|
|
|
# of the root directory for artifact path purposes
|
2022-01-01 20:23:38 +02:00
|
|
|
path: |
|
2022-01-03 10:53:22 +02:00
|
|
|
patched-fonts/${{ matrix.font }}
|
|
|
|
LICENSE
|
2022-01-01 16:47:57 +02:00
|
|
|
|
2022-01-03 12:15:14 +02:00
|
|
|
release-font-patcher:
|
|
|
|
name: Archive font patcher and add to release
|
2022-08-24 08:10:46 +02:00
|
|
|
needs: [ setup-fonts-matrix, build ]
|
2022-01-03 13:27:10 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-08-25 14:16:31 +02:00
|
|
|
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
2022-08-24 08:10:46 +02:00
|
|
|
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
2022-01-03 13:27:10 +02:00
|
|
|
|
2022-01-03 12:15:14 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-08-18 16:35:46 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-23 16:05:46 +02:00
|
|
|
- name: Bump version for source files
|
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
2022-08-25 14:16:31 +02:00
|
|
|
./version-bump.sh "$RELEASE_VERSION"
|
2022-08-23 16:05:46 +02:00
|
|
|
|
2022-01-03 12:15:14 +02:00
|
|
|
- name: Archive font-patcher script for release
|
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
|
|
|
./archive-font-patcher.sh
|
|
|
|
|
2022-08-23 15:59:54 +02:00
|
|
|
- name: Upload font-patcher archive for release
|
|
|
|
uses: softprops/action-gh-release@v0.1.14
|
2022-08-24 19:49:25 +02:00
|
|
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
2022-08-23 15:59:54 +02:00
|
|
|
with:
|
2022-08-26 18:01:17 +02:00
|
|
|
draft: true
|
2022-08-23 15:59:54 +02:00
|
|
|
prerelease: ${{ env.RELEASE_CANDIDATE != 'false' }}
|
2022-08-25 14:16:31 +02:00
|
|
|
tag_name: "v${{ env.RELEASE_VERSION }}"
|
2022-08-23 15:59:54 +02:00
|
|
|
files: archives/*
|
2022-01-03 12:15:14 +02:00
|
|
|
|
2022-01-01 16:47:57 +02:00
|
|
|
commit:
|
2022-08-26 18:01:17 +02:00
|
|
|
name: Commit and push patched fonts to the repo, finalize release
|
|
|
|
needs: [ setup-fonts-matrix, build, release-font-patcher ]
|
2022-01-01 16:47:57 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-08-18 16:35:46 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-18 18:25:59 +02:00
|
|
|
- name: Prepare repo (clear out old and obsolete fonts)
|
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/patched-fonts"
|
|
|
|
find . -name "*.[to]tf" -exec rm {} \;
|
|
|
|
|
2022-01-01 16:47:57 +02:00
|
|
|
- name: Download patched fonts from build
|
2022-01-03 10:53:22 +02:00
|
|
|
id: download-patched-fonts
|
2022-01-01 16:47:57 +02:00
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: patched-fonts
|
2022-01-03 10:53:22 +02:00
|
|
|
path: .
|
2022-01-01 16:47:57 +02:00
|
|
|
|
2022-08-23 16:05:46 +02:00
|
|
|
- name: Bump version for source files
|
2022-08-24 08:10:46 +02:00
|
|
|
env:
|
2022-08-25 14:16:31 +02:00
|
|
|
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
2022-08-24 08:10:46 +02:00
|
|
|
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
2022-08-23 16:05:46 +02:00
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
2022-08-25 14:16:31 +02:00
|
|
|
./version-bump.sh "$RELEASE_VERSION"
|
2022-08-23 16:05:46 +02:00
|
|
|
|
|
|
|
- name: Commit version bump changes
|
|
|
|
# If there are no changes (i.e. we already have that bump commit from a previous run)
|
|
|
|
# the git commit will fail as empty commit (that we do not explicitely allow here),
|
|
|
|
# and the action fails silently (i.e. without stopping the job).
|
|
|
|
# This means there will be only one commit in the repo for each version tag change,
|
|
|
|
# regardless of how often we run the release CI.
|
|
|
|
uses: EndBug/add-and-commit@v9
|
|
|
|
with:
|
2022-09-11 14:37:40 +02:00
|
|
|
fetch: false
|
2022-08-23 16:05:46 +02:00
|
|
|
add: "['font-patcher', 'bin/scripts']"
|
2022-08-25 12:51:27 +02:00
|
|
|
message: "[ci] Bump release version"
|
2022-08-23 16:05:46 +02:00
|
|
|
committer_name: GitHub Actions
|
|
|
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
|
2022-08-24 09:49:32 +02:00
|
|
|
- name: Commit patched fonts back to repo
|
|
|
|
uses: EndBug/add-and-commit@v9
|
2022-01-03 15:05:42 +02:00
|
|
|
with:
|
2022-09-11 14:37:40 +02:00
|
|
|
fetch: false
|
2022-01-03 15:05:42 +02:00
|
|
|
add: 'patched-fonts'
|
2022-10-12 14:02:08 +02:00
|
|
|
message: "[ci] Rebuild patched fonts"
|
2022-01-03 15:05:42 +02:00
|
|
|
committer_name: GitHub Actions
|
2022-08-18 18:25:59 +02:00
|
|
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
2022-08-24 19:47:11 +02:00
|
|
|
|
2022-08-25 08:59:23 +02:00
|
|
|
- name: Generate fontconfig
|
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
|
|
|
./generate-fontconfig.sh
|
|
|
|
|
|
|
|
- name: Commit fontconfig back to repo
|
|
|
|
uses: EndBug/add-and-commit@v9
|
|
|
|
with:
|
2022-09-11 14:37:40 +02:00
|
|
|
fetch: false
|
2022-08-25 08:59:23 +02:00
|
|
|
add: '10-nerd-font-symbols.conf'
|
2022-08-25 12:51:27 +02:00
|
|
|
message: "[ci] Regenerate fontconfig"
|
2022-08-25 08:59:23 +02:00
|
|
|
committer_name: GitHub Actions
|
|
|
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
|
2022-12-16 18:01:54 +02:00
|
|
|
- name: Generate new CSS file and webfonts
|
2022-09-10 18:19:45 +02:00
|
|
|
run: |
|
|
|
|
cd -- "$GITHUB_WORKSPACE/bin/scripts"
|
|
|
|
./generate-css.sh
|
2022-12-16 18:01:54 +02:00
|
|
|
./generate-webfonts.sh
|
2022-09-10 18:19:45 +02:00
|
|
|
|
|
|
|
- name: Commit CSS back to repo
|
|
|
|
uses: EndBug/add-and-commit@v9
|
|
|
|
id: push_css
|
|
|
|
with:
|
2022-09-11 14:37:40 +02:00
|
|
|
fetch: false
|
2022-09-10 18:19:45 +02:00
|
|
|
add: 'css'
|
|
|
|
message: "[ci] Regenerate CSS files"
|
|
|
|
committer_name: GitHub Actions
|
|
|
|
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
|
|
|
|
- name: Deploy CSS to gh-pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
|
|
if: steps.push_css.outputs.pushed
|
|
|
|
with:
|
|
|
|
folder: css
|
|
|
|
target-folder: _includes/css
|
|
|
|
commit-message: "[ci] Regenerate CSS files"
|
|
|
|
git-config-name: GitHub Actions
|
|
|
|
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
clean: false
|
|
|
|
|
2022-12-16 13:43:32 +02:00
|
|
|
- name: Deploy Cheat Sheet to gh-pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
|
|
if: steps.push_css.outputs.pushed
|
|
|
|
with:
|
|
|
|
folder: temp
|
|
|
|
target-folder: _posts
|
|
|
|
commit-message: "[ci] Regenerate Cheat Sheet"
|
|
|
|
git-config-name: GitHub Actions
|
|
|
|
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
clean: false
|
|
|
|
|
2022-12-16 18:01:54 +02:00
|
|
|
- name: Deploy webfonts to gh-pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
|
|
with:
|
|
|
|
folder: webfonts
|
|
|
|
target-folder: assets/fonts
|
|
|
|
commit-message: "[ci] Update webfonts"
|
|
|
|
git-config-name: GitHub Actions
|
|
|
|
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
clean: false
|
|
|
|
|
2022-08-24 19:47:11 +02:00
|
|
|
- name: Adjust release tag to include previous commit
|
|
|
|
uses: EndBug/latest-tag@v1.5.0
|
2022-08-24 19:49:25 +02:00
|
|
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
2022-08-24 19:47:11 +02:00
|
|
|
with:
|
2022-08-25 14:16:31 +02:00
|
|
|
ref: "v${{ needs.setup-fonts-matrix.outputs.rel_version }}"
|