Skip to content

Commit

Permalink
Update build_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
satra authored Aug 8, 2024
1 parent ba1c361 commit f2cb958
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
# events but only for the master branch
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

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

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

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

0 comments on commit f2cb958

Please sign in to comment.