Repository navigation
58 lines (47 loc) · 1.68 KB
/
Copy pathdeploy.yml
File metadata and controls
58 lines (47 loc) · 1.68 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Generate and deploy web pages
on:
workflow_dispatch:
### for testing / debugging allow "manual" start
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
- name: Run install
run: |
gem install cocos
- name: Build pages
run: |
git clone https://github.com/rsssf/scripts.git
ruby ./scripts/mkpages/mkpages.rb --index --codes --rootdir . --outdir ./_site
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
# Deployment job
## todo/check - if there's a way to simplify the deploy config here
## is the with token required? or the default?
## what about permissions?
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# with:
# token: ${{ secrets.GITHUB_TOKEN }}