chore(feeds): update icon URLs #56
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: | |
push: | |
branches: | |
- main | |
paths: | |
- Makefile | |
- elm.json | |
- 'public/**' | |
- 'src/**' | |
- 'vite.config.js' | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v4 | |
- run: pnpm install | |
- name: Setup Elm | |
uses: mpizenberg/elm-tooling-action@e8d4d23a71ba5993d67ca18531438991e3b4e28d | |
with: | |
cache-key: elm-home-${{ hashFiles('elm.json') }} | |
- name: Install dependencies | |
run: | | |
pip install brotli fonttools | |
- name: Build | |
run: | | |
rm -r docs/ || true | |
rm public/*.woff2 || true | |
make --always-make fonts docs/index.html | |
git add docs/ | |
git fetch --no-tags --depth=1 origin refs/heads/gh-pages | |
git checkout FETCH_HEAD data/ || true | |
git checkout FETCH_HEAD docs/feed/ || true | |
git switch -c gh-pages | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'chore(ci): squash & build' | |
branch: gh-pages | |
file_pattern: '' | |
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
push_options: '--force' |