Deploy Surge Websites #1
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 Surge Websites | |
on: [release, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Install assets | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Surge | |
run: npm install --global surge | |
deploy-betting-template: | |
name: Deploy Betting Template | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Surge | |
run: surge ./docs/betting-template/build practice-landings-betting-template.surge.sh --token ${{ secrets.SURGE_TOKEN }} | |
deploy-headphones: | |
name: Deploy Head{hones | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Surge | |
run: surge ./docs/headphones/build practice-landings-headphones.surge.sh --token ${{ secrets.SURGE_TOKEN }} |