Skip to content

.github/workflows/build.yaml #855

.github/workflows/build.yaml

.github/workflows/build.yaml #855

Workflow file for this run

on:
push:
branches:
- 'master'
schedule:
- cron: '5 0 * * *'
permissions:
contents: read
id-token: write
pages: write
env:
RELEASES: repos/jr8ppg/zlog/releases
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
Prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
mkdir -p _data
gh api $RELEASES --paginate > _data/releases.json
curl -o _data/market.json https://pkg.zlog.org/market.json
- uses: actions/configure-pages@v2
- uses: actions/jekyll-build-pages@v1
- uses: actions/upload-pages-artifact@v1
Publish:
needs: Prepare
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- uses: actions/deploy-pages@v1