Skip to content

Commit

Permalink
docs(ci): move deployment to different stage
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Nov 6, 2023
1 parent 3da3fd5 commit 0b25410
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-deploy:
permissions:
pages: write
id-token: write
build:
# Don't run on forks
if: github.repository == 'prefix-dev/pixi'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,6 +60,11 @@ jobs:
with:
path: "site"

deploy:
runs-on: ubuntu-latest
needs: build
if: github.repository == 'prefix-dev/pixi' && github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 0b25410

Please sign in to comment.