Use new fonts.css file, fix card display #108
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
# This workflow will: | |
# - Check last commit author to prevent commit loop | |
# - Setup Node | |
# - Setup Node dependencies | |
# - Run PurgeCSS | |
# - Commit build files, even if no new changes were made | |
# - Push changes | |
name: Run PurgeCSS | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: true # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- name: Check last commit author | |
if: github.event.pusher.name == 'github-actions' | |
run: echo "Commit loop detected! Exiting." && exit 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: "Build" | |
run: | | |
npm ci | |
npm run start | |
- name: Commit files | |
run: | | |
git config --local user.email "github-actions@users.noreply.github.com" | |
git config --local user.name "github-actions" | |
git commit -am "Commit PostCSS files" || echo "Nothing to commit, exiting cleanly..." && exit 0 | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.WEBSITE_TOKEN }} | |
branch: ${{ github.ref }} |