chore: adapt code to new API (#3) #3
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
name: Deploy Examples | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: yarn install | |
- name: Deploy | |
run: | | |
git config --global user.name "[email protected]" | |
git config --global user.email "GitHub Action" | |
git remote set-url origin https://${ACCESS_TOKEN}@github.com/${REPO}.git | |
yarn deploy | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
REPO: ${{ github.repository }} |