diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml deleted file mode 100644 index 4af52c5..0000000 --- a/.github/workflows/deploy-pages.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Deploy to Pages - -on: - workflow_run: - workflows: ["Ruby and Pages"] - types: - - completed - branches: - - main - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }} - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 395a778..fdfcbe2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,8 +27,8 @@ jobs: run: bundle exec rake docs: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest - needs: build steps: - uses: actions/checkout@v4 - name: Set up Ruby @@ -51,7 +51,6 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' steps: - name: Deploy to GitHub Pages id: deployment