-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 820 Bytes
/
deploy.yml
File metadata and controls
33 lines (28 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy master or staging to GitHub Pages
on:
push:
branches:
- master
- staging
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
# checkout current branch
- uses: actions/checkout@v1
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Initialise monorepo
run: yarn install --frozen-lockfile
- name: Run deploy script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config user.name "$GITHUB_ACTOR"
git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
npm run deploy:app