commit: bb5ccb7fbe2203a30372a6105b060c733a9e7d2c
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 4 09:25:17 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 4 09:25:17 2022 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=bb5ccb7f
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 <AT> gentoo.org>
.github/workflows/doc.yml | 34 +++++++++++++++++++++++++++-------
1 file changed, 27 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index f2f159ee9..7a290586e 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -3,9 +3,20 @@ name: doc
on:
push:
branches: [master]
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: true
+
jobs:
- build-and-deploy:
+ build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -29,10 +40,19 @@ jobs:
# notify github this isn't a jekyll site
touch build/sphinx/html/.nojekyll
- - name: Deploy docs to gh-pages
- uses: JamesIves/github-pages-deploy-action@v4
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v1
with:
- token: ${{ secrets.GITHUB_TOKEN }}
- branch: gh-pages
- folder: build/sphinx/html
- single-commit: true
+ path: build/sphinx/html
+
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v1