File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
8
8
permissions :
9
- contents : write # Grants write access to the repo
10
- pages : write # Allows updating GitHub Pages
11
- id-token : write # Required for secure deployments
9
+ contents : write # Grants GitHub Actions write access to the repo
10
+ pages : write
11
+ id-token : write
12
12
13
13
jobs :
14
14
deploy :
17
17
- name : Checkout code
18
18
uses : actions/checkout@v4
19
19
with :
20
- persist-credentials : false # Avoid using SSH keys
20
+ persist-credentials : false # Prevents SSH key issues
21
21
22
22
- name : Set up Node.js
23
23
uses : actions/setup-node@v4
35
35
env :
36
36
GIT_USER : github-actions[bot]
37
37
USE_SSH : false
38
- GIT_URL : https://github.com/blacksky-algorithms/blacksky-algorithms.github.io.git
38
+ GIT_URL : https://x-access-token:${{ secrets.GITHUB_TOKEN }}@ github.com/blacksky-algorithms/blacksky-algorithms.github.io.git
39
39
run : |
40
40
git config --global user.name "github-actions[bot]"
41
41
git config --global user.email "github-actions[bot]@users.noreply.github.com"
42
+ git remote set-url origin $GIT_URL
42
43
yarn deploy
Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ const config: Config = {
16
16
deploymentBranch : 'main' ,
17
17
onBrokenLinks : 'throw' ,
18
18
onBrokenMarkdownLinks : 'warn' ,
19
- scripts : [
20
- 'USE_SSH=false' ,
21
- ] ,
22
19
// Even if you don't use internationalization, you can use this field to set
23
20
// useful metadata like html lang. For example, if your site is Chinese, you
24
21
// may want to replace "en" with "zh-Hans".
You can’t perform that action at this time.
0 commit comments