rst public note #72
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: Deploy | |
on: | |
push: | |
branches: | |
- source | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
"build": | |
# This comes with | |
# - Vercel CLI | |
# - Make | |
# - Node 18 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
ssh-key: ${{ secrets.SSH_KEY }} | |
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Create Vercel config | |
# This uses Node | |
run: | | |
make vercel.json | |
- name: Build and deploy | |
env: | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
# GitHub preinstalls it. | |
run: | | |
vercel pull --yes --environment production --token ${{ secrets.VERCEL_TOKEN }} | |
vercel build --prod --token ${{ secrets.VERCEL_TOKEN }} | |
vercel deploy --prebuilt --prod --token ${{ secrets.VERCEL_TOKEN }} |