Skip to content

Commit 827239b

Browse files
author
mirkobrombin
committed
ci: Add GitHub Actions workflow for Pallas CI/CD pipeline
1 parent 8c3d55b commit 827239b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/pallas.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Pallas
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: 1.21
18+
19+
- name: Install pallas
20+
run: |
21+
curl -L -o pallas https://github.com/Vanilla-OS/Pallas/releases/download/continuous/pallas
22+
chmod +x pallas
23+
24+
- name: Generate Docs
25+
run: ./pallas
26+
27+
- name: Setup Pages
28+
id: pages
29+
uses: actions/configure-pages@v5
30+
31+
- name: Build with Jekyll
32+
uses: actions/jekyll-build-pages@v1
33+
with:
34+
source: ./dist
35+
destination: ./_site
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
40+
deploy:
41+
permissions:
42+
contents: read
43+
pages: write
44+
id-token: write
45+
environment:
46+
name: github-pages
47+
url: ${{steps.deployment.outputs.page_url}}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)