Repository navigation
fix: only detect 'Finished exporting' for export completion, not 'ico… #36
Workflow file for this run
This file contains hidden or 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: Build and Deploy | |
| on: [push] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Java ☕ | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Setup Node.js 🟢 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Cache Minecraft server files 💾 | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| server | |
| headlessmc/game | |
| key: minecraft-${{ hashFiles('modpack.json') }} | |
| restore-keys: | | |
| minecraft- | |
| - name: Install and Build 🔧 | |
| run: | | |
| npm install --legacy-peer-deps | |
| npm run build | |
| npm run lint | |
| - name: Download mods and generate metadata 📦 | |
| run: npm run generate:metadata | |
| - name: Install Xvfb 🖥️ | |
| run: sudo apt-get install -y xvfb | |
| - name: Generate icons 🎨 | |
| run: xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" npm run generate:icons | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate HTML 📄 | |
| run: npm run generate:html | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@3.6.2 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: output | |
| CLEAN: true | |