Merge pull request #78 from Baba-Project/dependabot/bundler/wdm-tw-0.2.0 #71
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] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [16.x] | |
| steps: | |
| - name: Get files | |
| uses: actions/checkout@v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache packages | |
| run: npm cache clean --force | |
| - name: Install packages | |
| run: npm install | |
| - name: Jekyll Install | |
| run: sudo gem install jekyll | |
| - name: Bundler install | |
| run: sudo gem install bundler | |
| - name: Bundler install Package | |
| run: sudo bundler install | |
| - name: Build project | |
| run: npm run build | |
| - name: Run Lighthouse 💡 | |
| uses: treosh/lighthouse-ci-action@v3 | |
| with: | |
| configPath: "./lighthouserc.json" | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: _site |