66# events but only for the master branch
77on :
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
1414jobs :
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
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
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