Skip to content

Commit

Permalink
ci: fix deploy job
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <[email protected]>
  • Loading branch information
neilime committed Nov 12, 2024
1 parent d9036eb commit 8ccdf6e
Showing 1 changed file with 37 additions and 32 deletions.
69 changes: 37 additions & 32 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,40 @@ jobs:
uses: ./.github/workflows/__shared-ci.yml
secrets: inherit

deploy:
name: Deploy website
needs: ci
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: documentation

- name: ⚙️ Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5

- name: 🚀 Deploy to GitHub Pages
id: deployment
if: github.ref == 'refs/heads/main'
uses: actions/deploy-pages@v4

- name: 🔭 Check the site is up
uses: srt32/[email protected]
with:
url-to-hit: ${{ steps.deployment.outputs.page_url }}
expected-statuses: "200"
deploy:
if: github.ref == 'refs/heads/main'
name: Deploy website
needs: ci
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: build
path: /

- name: 📦 Upload website build artifact
uses: actions/upload-pages-artifact@v3
with:
path: public

- name: ⚙️ Setup Pages
uses: actions/configure-pages@v5

- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: 🔭 Check the site is up
uses: srt32/[email protected]
with:
url-to-hit: ${{ steps.deployment.outputs.page_url }}
expected-statuses: "200"

0 comments on commit 8ccdf6e

Please sign in to comment.