Skip to content

Deploy

Deploy #10947

Workflow file for this run

name: "Deploy"
on:
push:
branches:
- develop
schedule:
- cron: "0 9-23 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup node
uses: actions/[email protected]
with:
node-version: 20.10.0
- name: Setup cache
uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install
run: npm ci
- name: Build and export
run: |
npm run build
env:
CI: true
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
- name: Deploy!
uses: demurgos/ga-deploy-git@v1
if: ${{ github.event_name == 'push' }}
with:
accessToken: ${{ secrets.PUSH_TOKEN }}
commitEmail: "[email protected]"
commitUser: "JiteBot"
destBranch: "master"
srcDir: "out"