try upload with artifact data to keep reposiory slim #80
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: Update deb822 style cache files | ||
on: | ||
push: | ||
check_run: | ||
schedule: | ||
- cron: "30 23 * * *" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: 'crpb/fnt' | ||
ref: 'mirror' | ||
- name: Restore cached Primes | ||
id: cache-primes-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
key: ${{ runner.os }}-primes | ||
path: | | ||
fonts-main | ||
- name: generate index | ||
run: | | ||
./update.sh | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "fnt index" | ||
git add OFL.xz APACHE.xz || : | ||
if git commit -m $(date -Im); then | ||
git push | ||
fi | ||
- name: upload files | ||
id: deployweb | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./ | ||
- name: Always Save Primes | ||
id: cache-primes-save | ||
if: always() && steps.cache-primes-restore.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} | ||
path: | | ||
fonts-main | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.output.page_url }} | ||
needs: generate index | ||
steps: | ||
- name: deploy webdata | ||
id: deployweb | ||
uses: actions/deploy-pages@v4 |