-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.33 KB
/
deploy.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Deploy to Github Pages
on:
push:
branches:
- master
workflow_dispatch:
env:
PUBLIC_URL: ${{ vars.PUBLIC_URL }}
REACT_APP_HCAPTCHA_SITE_KEY: ${{ vars.REACT_APP_HCAPTCHA_SITE_KEY }}
REACT_APP_API_SIGNALEMENT_URL: ${{ vars.REACT_APP_API_SIGNALEMENT_URL }}
REACT_APP_API_SIGNALEMENT_SOURCE_TOKEN: ${{ vars.REACT_APP_API_SIGNALEMENT_SOURCE_TOKEN }}
REACT_APP_BAN_PLATEFORME_URL: ${{ vars.REACT_APP_BAN_PLATEFORME_URL }}
REACT_APP_API_ADRESSE_URL: ${{ vars.REACT_APP_API_ADRESSE_URL }}
jobs:
# scan:
# name: gitleaks
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: gitleaks/gitleaks-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITLEAKS_LICENSE: ${{secrets.BAL_GITLEAKS_LICENSE}}
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "yarn"
- name: Build
run: |
yarn
yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build
publish_branch: gh-pages