Skip to content

Commit 70d0288

Browse files
committed
ci: use deploy using github actions instead of branch
Using a branch is broken when using the mirroring. So use straight deployment using github actions. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 810cf69 commit 70d0288

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

.github/workflows/doc.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ name: doc
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
616

717
jobs:
8-
build-and-deploy:
18+
build:
919
runs-on: ubuntu-latest
1020
steps:
1121
- name: Checkout code
@@ -27,10 +37,19 @@ jobs:
2737
# notify github this isn't a jekyll site
2838
touch build/sphinx/html/.nojekyll
2939
30-
- name: Deploy docs to gh-pages
31-
uses: JamesIves/github-pages-deploy-action@v4
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v1
3242
with:
33-
token: ${{ secrets.GITHUB_TOKEN }}
34-
branch: gh-pages
35-
folder: build/sphinx/html
36-
single-commit: true
43+
path: build/sphinx/html
44+
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
needs: build
51+
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)