Skip to content

Commit 3b3db3b

Browse files
authored
Create pages.yml
1 parent 4f3aa26 commit 3b3db3b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/pages.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Build the website
17+
run: cd website && curl https://raw.githubusercontent.com/arcanis/mael.dev-docs/main/install.sh | tee /dev/stderr | bash
18+
19+
- name: Upload Artifact
20+
uses: actions/upload-pages-artifact@v1
21+
with:
22+
path: ./website/build
23+
24+
deploy:
25+
runs-on: ubuntu-latest
26+
needs: build
27+
28+
permissions:
29+
pages: write
30+
id-token: write
31+
32+
environment:
33+
name: github-pages
34+
url: ${{steps.deployment.outputs.page_url}}
35+
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)