From 38997656eab7156693c6489aba40862030e3ca99 Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Wed, 20 Dec 2023 13:16:04 -0700 Subject: [PATCH 1/3] fixed some bugs --- .github/workflows/deploy-book.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-book.yaml b/.github/workflows/deploy-book.yaml index 9ff9ea1c..00ea431c 100644 --- a/.github/workflows/deploy-book.yaml +++ b/.github/workflows/deploy-book.yaml @@ -31,7 +31,7 @@ concurrency: jobs: # Build job build: - runs-on: [ self-hosted ] + runs-on: ubuntu-latest env: MDBOOK_VERSION: 0.4.21 steps: @@ -45,7 +45,7 @@ jobs: id: pages uses: actions/configure-pages@v3 - name: Build with mdBook - working-directory: ${{runner.workspace}}/mbap-computing/docs/ + working-directory: ${{runner.workspace}}/fastsim/docs/ run: mdbook build - name: Upload artifact uses: actions/upload-pages-artifact@v1 From 30ff7f8fe9b696747c5fa1ee3aa9389bf13b479e Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Wed, 20 Dec 2023 13:36:10 -0700 Subject: [PATCH 2/3] fixed `runs-on` --- .github/workflows/deploy-book.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-book.yaml b/.github/workflows/deploy-book.yaml index 00ea431c..4ab0ab80 100644 --- a/.github/workflows/deploy-book.yaml +++ b/.github/workflows/deploy-book.yaml @@ -57,7 +57,7 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: [ self-hosted ] + runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages From 9aaf2244d7e9ce54ec48be6416a77a33d34df511 Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Wed, 20 Dec 2023 14:05:06 -0700 Subject: [PATCH 3/3] changed it to only deploy on push to main --- .github/workflows/deploy-book.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/deploy-book.yaml b/.github/workflows/deploy-book.yaml index 4ab0ab80..0acb8bba 100644 --- a/.github/workflows/deploy-book.yaml +++ b/.github/workflows/deploy-book.yaml @@ -7,11 +7,6 @@ on: paths: - "docs/**" - ".github/workflows/deploy-book.yaml" - pull_request: - branches: ["fastsim-2"] - paths: - - "docs/**" - - ".github/workflows/deploy-book.yaml" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: