Skip to content

🀸🏽 Build & Deploy #495

🀸🏽 Build & Deploy

🀸🏽 Build & Deploy #495

Workflow file for this run

name: 🀸🏽 Build & Deploy
on:
push:
branches: [main]
schedule:
- cron: '0 9 * * *'
jobs:
deploy:
name: 🀸🏽 Build & Deploy
if: github.repository == 'senar-ai/web'
runs-on: ubuntu-latest
permissions:
id-token: write # This is required to allow the GitHub Action to authenticate with Deno Deploy.
contents: read
steps:
- name: πŸ‘ Clone repository
uses: actions/checkout@v3
- name: πŸ¦€ Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: β›“ Install Node deps
uses: bahmutov/npm-install@v1
- name: πŸ’Ώ Remix Build
run: npm run build
- name: πŸ“‚ Make deno dir
run: mkdir -p ./deno
- name: πŸ“ Copy Remix build files into output dir
run: cp -R ./{build,public} ./deno
- name: πŸš› Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: senarai # the name of the project on Deno Deploy
entrypoint: './build/index.js' # the entrypoint to deploy
root: './deno' # the root directory of the build assets