generated from w3c/wai-resource-template
-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (39 loc) · 1.18 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
name: Deploy to netlify from APG trigger
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: scripts/pre-build/package-lock.json
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Update git submodules
run: |
git submodule update --recursive --remote
- name: Update site files
run: |
bundle install
npm install -C scripts/pre-build
node ./scripts/pre-build
- name: Commit changed files and submodule updates
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: w3cgruntbot
commit_user_email: [email protected]
commit_author: w3cgruntbot <[email protected]>
commit_message: "chore: Update `main` with latest changes from `aria-practices`"
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}