generated from w3c/wai-resource-template
-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (36 loc) · 981 Bytes
/
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
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@v4
with:
commit_message: Commit changes
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}