Skip to content

hardcode data (excl customers) #190

hardcode data (excl customers)

hardcode data (excl customers) #190

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: '$: yarn install'
run: yarn install
- name: '$: yarn build:gh-pages'
run: yarn build:gh-pages
env: # As an environment variable
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
- name: '$: yarn generate:gh-pages'
run: yarn generate:gh-pages
env: # As an environment variable
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
- name: Upload Artifacts # The project is then uploaded as an artifact named 'site'.
uses: actions/upload-artifact@v1
with:
name: site
path: dist
- name: Deploy
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: main # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
CLEAN: true