File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change 9
9
push :
10
10
branches :
11
11
- main
12
- - deploy
13
12
14
13
# Allows you to run this workflow manually from the Actions tab
15
14
workflow_dispatch :
16
15
17
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18
- permissions :
19
- contents : read
20
- pages : write
21
- id-token : write
22
-
23
16
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24
17
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25
18
concurrency :
26
19
group : pages
27
20
cancel-in-progress : false
28
21
29
22
jobs :
30
- build :
23
+ build-and-deploy :
31
24
runs-on : ubuntu-latest
32
25
steps :
33
26
- name : Install Hugo CLI
@@ -52,18 +45,10 @@ jobs:
52
45
--gc \
53
46
--minify \
54
47
--baseURL "${{ steps.pages.outputs.base_url }}/"
55
- - name : Upload artifact
56
- uses : actions/upload -pages-artifact@v1
48
+ - name : Deploy pages
49
+ uses : JamesIves/github -pages-deploy-action@releases/v4
57
50
with :
58
- path : ./public
59
-
60
- deploy :
61
- environment :
62
- name : github-pages
63
- url : ${{ steps.deployment.outputs.page_url }}
64
- runs-on : ubuntu-latest
65
- needs : build
66
- steps :
67
- - name : Deploy to GitHub Pages
68
- id : deployment
69
- uses : actions/deploy-pages@v2
51
+ folder : ./public
52
+ repository-name : numpy/numpy.github.com
53
+ branch : main
54
+ token : ${{ secrets.PERSONAL_TOKEN }}
You can’t perform that action at this time.
0 commit comments