added auto retrying to the aPI calls after timeout in an attempt to d… #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Node.js CI | |
env: | |
CI: false | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- run: "wget https://harmonydata.github.io/website/public.tar.gz" | |
name: Download static page. The source is in https://github.com/harmonydata/website. | |
# - name: create a folder to put the React app in | |
# run: "mkdir public/app" | |
# - name: move the React app under public/app | |
# run: "mv public/* public/app/" | |
# - name: unzip the static blog content | |
# run: "tar -xvf public.tar.gz" | |
# name: Unzip the tar and put it in the public folder | |
- run: npm ci | |
- run: npm run build --if-present | |
# - run: npm test | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |