File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Book Preview
2
-
1
+ name : CircleCI artifacts redirector
3
2
on : [status]
4
3
4
+ # Restrict the permissions granted to the use of secrets.GITHUB_TOKEN in this
5
+ # github actions workflow:
6
+ # https://docs.github.com/en/actions/security-guides/automatic-token-authentication
7
+ permissions :
8
+ statuses : write
9
+
5
10
jobs :
6
11
circleci_artifacts_redirector_job :
7
12
runs-on : ubuntu-latest
8
- if : " ${{ github.event.context == 'ci/circleci: build_book' }}"
13
+ # For testing this action on a fork, remove the "github.repository =="" condition.
14
+ if : " github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build'"
15
+ permissions :
16
+ statuses : write
9
17
name : Run CircleCI artifacts redirector
10
18
steps :
11
19
- name : GitHub Action step
12
20
id : step1
13
21
uses : larsoner/circleci-artifacts-redirector-action@master
14
22
with :
15
23
repo-token : ${{ secrets.GITHUB_TOKEN }}
16
- artifact-path : 0/html/index.html
17
- circleci-jobs : build_book
18
- job-title : Click to preview rendered book
24
+ api-token : ${{ secrets.CIRCLECI_TOKEN }}
25
+ artifact-path : 0/_site/index.html
26
+ circleci-jobs : build
27
+ job-title : Check the rendered website build here!
You can’t perform that action at this time.
0 commit comments