Skip to content

Commit f2cb958

Browse files
authored
Update build_deploy.yml
1 parent ba1c361 commit f2cb958

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build_deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: CI
66
# events but only for the master branch
77
on:
88
push:
9-
branches: [ master ]
9+
branches: [ main ]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [ main ]
1212

1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
@@ -21,9 +21,9 @@ jobs:
2121
steps:
2222

2323
- name: Setup Node
24-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v4
2525
with:
26-
node-version: '12.x'
26+
node-version: '21.x'
2727
# Install jq if it's not already available
2828
- name: Install jq
2929
run: sudo apt-get install jq
@@ -35,7 +35,7 @@ jobs:
3535
echo "CHECKSUM=$LATEST_HASH" >> $GITHUB_ENV
3636
3737
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
3939

4040
# Runs a set of commands using the runners shell
4141
- name: Check for syntax errors
@@ -45,10 +45,10 @@ jobs:
4545
grep -r "@context" DemoProtocol | cut -d: -f1 | xargs -I fname jsonlint -q fname
4646
4747
# Validate the protocol
48-
- name: Set up Python 3.8
49-
uses: actions/setup-python@v2
48+
- name: Set up Python 3.11
49+
uses: actions/setup-python@v5
5050
with:
51-
python-version: 3.8
51+
python-version: "3.11"
5252
- name: Install dependencies
5353
run: |
5454
python -m pip install --upgrade pip setuptools
@@ -71,8 +71,8 @@ jobs:
7171
touch dist/.nojekyll
7272
7373
- name: Deploy 🚀
74-
uses: JamesIves/github-pages-deploy-action@releases/v3
75-
if: github.ref == 'refs/heads/master'
74+
uses: JamesIves/github-pages-deploy-action@v4
75+
if: github.ref == 'refs/heads/main'
7676
with:
7777
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7878
BRANCH: gh-pages # The branch the action should deploy to.

0 commit comments

Comments
 (0)