Skip to content

CI

CI #655

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0,12 * * *"
env:
refinedSitesVersion: 0.4.1
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