Skip to content

Upgrade yarn and added download handler in resume button #27

Upgrade yarn and added download handler in resume button

Upgrade yarn and added download handler in resume button #27

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: '20.11.0'
cache: 'yarn'
- name: Install and Build 🔧
run: |
yarn install
yarn fetch_data
yarn run build
env:
REACT_APP_GITHUB_REPO: ${{ secrets.REACT_APP_GITHUB_REPO }}
REACT_APP_TITLE: ${{ secrets.REACT_APP_TITLE }}
REACT_APP_WEBSITE_URL: ${{ secrets.REACT_APP_WEBSITE_URL }}
REACT_APP_WEBSITE_VERSION: ${{ secrets.REACT_APP_WEBSITE_VERSION }}
REACT_APP_DESCRIPTION: ${{ secrets.REACT_APP_DESCRIPTION }}
REACT_APP_JSONBIN_MASTER_KEY: ${{secrets.REACT_APP_JSONBIN_MASTER_KEY}}
CI: ""
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build