Skip to content

Commit 5414496

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 c1990d8 commit 5414496

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: [master]
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
@@ -29,10 +39,19 @@ jobs:
2939
# notify github this isn't a jekyll site
3040
touch build/sphinx/html/.nojekyll
3141
32-
- name: Deploy docs to gh-pages
33-
uses: JamesIves/github-pages-deploy-action@v4
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v1
3444
with:
35-
token: ${{ secrets.GITHUB_TOKEN }}
36-
branch: gh-pages
37-
folder: build/sphinx/html
38-
single-commit: true
45+
path: build/sphinx/html
46+
47+
deploy:
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
runs-on: ubuntu-latest
52+
needs: build
53+
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)