Skip to content

publish_event

publish_event #356

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
repository_dispatch:
types: [publish_event]
env:
NODE_ENV: production
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: "Deploy 🚀"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 8
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm i --production false
- name: Build
run: pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./out
cname: games.mattjarman.me