Skip to content

Commit

Permalink
ci: skip deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
philiplinden committed Nov 27, 2024
1 parent 019fb96 commit 2db5450
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,34 +65,34 @@ jobs:
name: doc
path: target/doc

deploy:
if: github.ref == 'refs/heads/main'
needs: doc
# 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 }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
with:
name: doc
path: ${{ github.workspace }}

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
if: github.event_name != 'pull_request'
# deploy:
# if: github.ref == 'refs/heads/main'
# needs: doc
# # 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 }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0

# - uses: actions/download-artifact@v4
# with:
# name: doc
# path: ${{ github.workspace }}

# - name: Upload Pages artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: target/doc

# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
# if: github.event_name != 'pull_request'

0 comments on commit 2db5450

Please sign in to comment.