Skip to content

Production Release

Production Release #76

Workflow file for this run

name: Production Release
on:
release:
types:
- published
# manual trigger
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.13.0
uses: actions/setup-node@v1
with:
node-version: "16.13.0"
- name: Install dependencies
run: yarn
- name: Building static site
run: yarn build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch