Production Release #76
This file contains 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: 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 |