From 573fe680b96e0cdcf939c0bfb666df671e8d264d Mon Sep 17 00:00:00 2001 From: Dar Dahlen Date: Wed, 24 Apr 2024 12:36:49 -0700 Subject: [PATCH 1/5] Testing Pages --- .github/workflows/docs.yml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7cef8c1..c33173f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,9 +30,41 @@ jobs: - name: Build Docs run: | (cd doc && make clean && make html && make doctest) + - name: Fix permissions + run: | + chmod -c -R +rX "doc/" | while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done - name: Archive Docs uses: actions/upload-artifact@v2 with: - name: "docs" + name: "github-pages2" + path: + doc/html/* + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + name: "github-pages" path: - doc/html/* \ No newline at end of file + doc/html/* + + deploy: + # Add a dependency to the build job + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + # Specify runner + deployment step + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 56bdf5c0ecaa0664472af3ec97950ccfa20ea237 Mon Sep 17 00:00:00 2001 From: Dar Dahlen Date: Wed, 24 Apr 2024 12:37:30 -0700 Subject: [PATCH 2/5] Update docs.yml --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c33173f..b519475 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,7 +5,7 @@ name: Build Docs on: push: - branches: [ "main" ] + branches: [ "main" , "pages"] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true From f68e2b0fb8b423fc7e1c9becf7f074ec1b58c03e Mon Sep 17 00:00:00 2001 From: Dar Dahlen Date: Wed, 24 Apr 2024 12:43:19 -0700 Subject: [PATCH 3/5] Update docs.yml --- .github/workflows/docs.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b519475..924d114 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,15 +38,11 @@ jobs: - name: Archive Docs uses: actions/upload-artifact@v2 with: - name: "github-pages2" + name: "github-pages" path: doc/html/* - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 - with: - name: "github-pages" - path: - doc/html/* deploy: # Add a dependency to the build job From ca0a7d9c7fd79dc0dfacc12db9b9630433069394 Mon Sep 17 00:00:00 2001 From: Dar Dahlen Date: Wed, 24 Apr 2024 12:48:24 -0700 Subject: [PATCH 4/5] Update docs.yml --- .github/workflows/docs.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 924d114..b25dcba 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -35,14 +35,18 @@ jobs: chmod -c -R +rX "doc/" | while read line; do echo "::warning title=Invalid file permissions automatically fixed::$line" done - - name: Archive Docs - uses: actions/upload-artifact@v2 + # - name: Archive Docs + # uses: actions/upload-artifact@v2 + # with: + # name: "github-pages" + # path: + # doc/html/* + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 with: name: "github-pages" path: - doc/html/* - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 + doc/html/ deploy: # Add a dependency to the build job From ae55bd71569ddeba7cbda984d4187bd95339d965 Mon Sep 17 00:00:00 2001 From: Dar Dahlen Date: Wed, 24 Apr 2024 16:12:52 -0700 Subject: [PATCH 5/5] Update docs.yml --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b25dcba..02c8ccd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,7 +5,7 @@ name: Build Docs on: push: - branches: [ "main" , "pages"] + branches: [ "main" ] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true