Build Release #11056
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 Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: '28 * * * *' | |
jobs: | |
build: | |
name: Update | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Fetch data | |
run: | | |
. update.sh | |
- name: Push to release | |
run: | | |
git branch -D release || true | |
git checkout --orphan release | |
echo library.jlulug.org > CNAME | |
git add data.json CNAME | |
git config --local user.name "github-actions[bot]" | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git commit -m "built on $(date)" | |
git push -f -u origin release |