CI #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |