-
Notifications
You must be signed in to change notification settings - Fork 292
65 lines (60 loc) · 1.78 KB
/
deploy.yml
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
59
60
61
62
63
64
65
name: Deploy
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.3' # matches Netlify of ruby version
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Update Externals
run: |
git submodule update --remote
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply automatic changes
branch: main
- name: Build and test with Jekyll
run: |
export WAI_LIVE_SITE=true
bundle exec jekyll build --config "_config.yml,_config_prod.yml" --profile
- name: Generate list of resources
run: |
find ./_site -type f | sed 's,^\.\/_site,,' | sort > ./_site/manifest.txt
- name: Publish to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _site
- name: Zip Files
uses: montudor/action-zip@v1
with:
args: zip -r build.zip ./_site
- name: Upload zip file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build.zip
asset_name: build.zip
tag: ${{ github.ref }}
overwrite: true
- name: Wait for gh-pages to be updated
run: sleep 90s
shell: bash
- name: Update URL mapping on W3C site
uses: fjogeleit/http-request-action@v1
with:
url: 'https://www.w3.org/services/update-wai-map'
method: 'POST'
timeout: 70000