Bump up nodejs version #172
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: Deploy to GitHub pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| BRIDGETOWN_ENV: production | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install libvips | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -f -y | |
| sudo apt-get install -y libpoppler-glib8 libpoppler-dev | |
| sudo apt-get install -y libvips-dev | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "yarn" | |
| - run: yarn install | |
| - name: Refresh Cache | |
| run: bin/bridgetown clean | |
| - name: Build Frontend | |
| run: bin/bridgetown frontend:build | |
| - name: Build Static Site | |
| run: bin/bridgetown build -V | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./output |