-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (40 loc) · 1.21 KB
/
ci.yml
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
36
37
38
39
40
name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0,12 * * *"
env:
refinedSitesVersion: 0.3.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Refined Sites
run: wget "https://github.com/refinedmods/refinedsites/releases/download/v$refinedSitesVersion/refinedsites-$refinedSitesVersion-all.jar"
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Build site
run: java -jar refinedsites-$refinedSitesVersion-all.jar .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/
clean: true
clean-exclude: |
refined-storage/wiki/*.html
refined-storage/releases/*.html
refined-storage-addons/*.html
refined-storage-addons/wiki/*.html
ranged-pumps/wiki/*.html
ranged-pumps/releases/*.html