-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 878 Bytes
/
deploy-qa.yml
File metadata and controls
38 lines (33 loc) · 878 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
34
35
36
37
38
name: Deploy QA
on:
push:
branches:
- release/*
env:
REACT_APP_API_URL: https://funfunz-qa.herokuapp.com
PUBLIC_URL: /backoffice-qa/
GH_PAT: ${{ secrets.GH_PAT }}
GH_USER: ${{ secrets.GH_USER }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- run: npm install
- run: npm run build
- run: touch build/.nojekyll
- name: Deploy
run: |
cd build/
git config --global user.name "$GH_USER"
git config --global user.email "$GH_EMAIL"
git init
git checkout -b gh-pages
git remote add origin https://$GH_USER:$GH_PAT@github.com/Funfunz/backoffice-qa.git
git add .
git commit -m 'gh-pages'
git push -f -u origin gh-pages