-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 973 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches:
- 'master'
schedule:
- cron: '5 0 * * *'
workflow_dispatch:
permissions:
contents: read
id-token: write
actions: 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
Sustain:
runs-on: ubuntu-latest
steps:
- run: gh workflow enable build.yaml
env:
GH_REPO: ${{github.repository}}