-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use ci-github-publish action to deploy
Signed-off-by: Emilien Escalle <[email protected]>
- Loading branch information
Showing
1 changed file
with
4 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |