generated from ricoThaka/hacker
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (35 loc) · 838 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: macos-latest
name: script/cibuild
steps:
- uses: actions/checkout@v4
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.0
bundler-cache: true
- name: build
run: script/bootstrap
- name: test
run: script/cibuild
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4