Skip to content

Merge pull request #476 from live-codes/develop #21

Merge pull request #476 from live-codes/develop

Merge pull request #476 from live-codes/develop #21

Workflow file for this run

name: Deploy
# on push to main deploy (as self-hosted build) to github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_ACTIONS_REPO_PAT }}
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Deploy
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
npm run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_REPO_PAT }}