Skip to content

Commit

Permalink
ci: use ci-github-publish action to deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <[email protected]>
  • Loading branch information
neilime committed Jan 30, 2025
1 parent 9e09ed0 commit 5082e7f
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,13 @@ jobs:
needs: ci
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{ steps.deployment.outputs.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]
- id: deployment
uses: hoverkraft-tech/ci-github-publish/actions/deploy/[email protected]
with:
url-to-hit: ${{ steps.deployment.outputs.page_url }}
expected-statuses: "200"
build-assets-path: public

0 comments on commit 5082e7f

Please sign in to comment.