File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
12
jobs :
13
- build_test :
13
+ build_site :
14
14
# The type of runner that the job will run on
15
15
runs-on : ubuntu-latest
16
16
17
17
strategy :
18
18
matrix :
19
19
node-version : [12.x] # We will deploy with only one version of node
20
20
21
+ permissions :
22
+ contents : write
23
+ pages : write
24
+
21
25
# Steps represent a sequence of tasks that will be executed as part of the job
22
26
steps :
23
27
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
- - uses : actions/checkout@v2
28
+ - uses : actions/checkout@v3
25
29
- name : Use Node.js ${{ matrix.node-version }}
26
30
uses : actions/setup-node@v2
27
31
with :
28
32
node-version : ${{ matrix.node-version }}
29
- - name : npm ci, build and test
33
+ - name : build site
30
34
run : |
31
- npm ci
32
- npm run build --if-present
33
- npm test
34
- # - name: deploy to gh-pages
35
- # uses: peaceiris/actions-gh-pages@v3
36
- # with:
37
- # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
38
- # publish_dir: ./build
35
+ npm install
36
+ npm install gh-pages --save-dev
39
37
- name : deploy to gh-pages
38
+ env :
39
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+
41
+ GH_USERNAME : dustinblack
40
42
run : |
43
+ git config --global user.name $GH_USERNAME
44
+ git config --global user.email $GH_EMAIL
45
+ git remote set-url origin https://$GH_USERNAME:${{ secrets.GH_SECRET }}@github.com/redhat-performance/tooling-curator.git
41
46
npm run deploy
42
- with :
43
- deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
You can’t perform that action at this time.
0 commit comments