-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (35 loc) · 1.07 KB
/
site-build.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
name: Deploy React Application
on:
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
jobs:
build_site:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x] # We will deploy with only one version of node
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: build site
run: |
npm install
npm install gh-pages --save-dev
- name: deploy to gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_EMAIL: [email protected]
GH_USERNAME: redhat-perfbot
run: |
git config --global user.name $GH_USERNAME
git config --global user.email $GH_EMAIL
git remote set-url origin https://$GH_USERNAME:[email protected]/redhat-performance/tooling-curator.git
npm run deploy