github.com/criteo/command-launcher@v0.0.0-20230407142452-fb616f546e98/.github/workflows/deploy-github.yml (about) 1 # Deploy your site to GitHub Pages 2 3 name: GitHub Pages 4 5 on: 6 push: 7 branches: 8 - main 9 10 jobs: 11 deploy: 12 runs-on: ubuntu-20.04 13 steps: 14 - uses: actions/checkout@v2 15 - uses: actions/setup-node@v2 16 with: 17 node-version: '16' 18 cache: 'npm' 19 cache-dependency-path: gh-pages/package-lock.json 20 21 - name: Install dependencies 22 run: cd gh-pages && npm install 23 24 - name: Build production website 25 run: cd gh-pages && npm run build 26 27 - name: Deploy to GitHub Pages 28 uses: peaceiris/actions-gh-pages@v3 29 with: 30 github_token: ${{ secrets.GITHUB_TOKEN }} 31 publish_dir: ./gh-pages/public