Skip to content

Commit 35a5895

Browse files
authored
Revert to uploading pages to numpy.github.com repo (numpy#665)
I don't know how to serve the `/doc` subfolder with the GHA workflow yet.
1 parent 520eae5 commit 35a5895

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,18 @@ on:
99
push:
1010
branches:
1111
- main
12-
- deploy
1312

1413
# Allows you to run this workflow manually from the Actions tab
1514
workflow_dispatch:
1615

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-
2316
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2417
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2518
concurrency:
2619
group: pages
2720
cancel-in-progress: false
2821

2922
jobs:
30-
build:
23+
build-and-deploy:
3124
runs-on: ubuntu-latest
3225
steps:
3326
- name: Install Hugo CLI
@@ -52,18 +45,10 @@ jobs:
5245
--gc \
5346
--minify \
5447
--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
5750
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 }}

0 commit comments

Comments
 (0)