Add the MIT LICENSE to the handbook #48
Workflow file for this run
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: Test pull requests and generate preview link | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
test-deploy: | |
name: Test deployment | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
cache: npm | |
- name: Test build | |
run: | | |
npm install --frozen-lockfile | |
npm run build | |
- name: Installing Surge | |
run: npm i -g surge | |
- name: Deploying on Surge | |
env: | |
SURGE_LOGIN: [email protected] | |
SURGE_TOKEN: aadbfcb04e3dae63bb3561ca05f93eb1 | |
DEPLOY_DOMAIN: https://pr-${{ github.event.number }}-sef-handbook.surge.sh | |
run: surge ./build $DEPLOY_DOMAIN --token $SURGE_TOKEN |