Skip to content

Deployment

Deployment #25

Workflow file for this run

# Deploy when there is a new release "Published". This will take each new release and deploy it to
# gh-pages.
#
# Guide:
# https://medium.com/@cmichel/how-to-deploy-a-create-react-app-with-github-actions-5e01f7a7b6b
name: Deployment
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: Install Packages
run: npm install
- name: Build page
run: npm run build --if-present
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./build
cname: sandify.org