move CNAME to web directory #43
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NODE: 18 | |
WORKING_DIRECTORY: packages/web | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ env.NODE }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE }} | |
cache: "yarn" | |
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/yarn.lock | |
- name: Install Dependencies | |
run: yarn install | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
- name: Lint | |
run: yarn lint | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
- name: Deploy to surge | |
run: yarn deploy | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
env: | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} |