Skip to content

Commit 5082e7f

Browse files
committed
ci: use ci-github-publish action to deploy
Signed-off-by: Emilien Escalle <[email protected]>
1 parent 9e09ed0 commit 5082e7f

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

.github/workflows/main-ci.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,13 @@ jobs:
2727
needs: ci
2828
runs-on: ubuntu-latest
2929
permissions:
30-
contents: write
3130
pages: write
3231
id-token: write
3332
environment:
3433
name: github-pages
35-
url: ${{ steps.deployment.outputs.page_url }}
34+
url: ${{ steps.deployment.outputs.url }}
3635
steps:
37-
- uses: actions/checkout@v4
38-
39-
- uses: actions/download-artifact@v4
40-
with:
41-
name: build
42-
path: /
43-
44-
- name: 📦 Upload website build artifact
45-
uses: actions/upload-pages-artifact@v3
46-
with:
47-
path: public
48-
49-
- name: ⚙️ Setup Pages
50-
uses: actions/configure-pages@v5
51-
52-
- name: 🚀 Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v4
55-
56-
- name: 🔭 Check the site is up
57-
uses: srt32/[email protected]
36+
- id: deployment
37+
uses: hoverkraft-tech/ci-github-publish/actions/deploy/[email protected]
5838
with:
59-
url-to-hit: ${{ steps.deployment.outputs.page_url }}
60-
expected-statuses: "200"
39+
build-assets-path: public

0 commit comments

Comments
 (0)