Add some spacing #4
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: Build and deploy | |
on: | |
push: | |
branches: | |
- main | |
concurrency: deploy | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 | |
with: | |
ruby-version: "3.1" | |
bundler-cache: true | |
- name: Build website | |
run: | | |
bundle exec jekyll build | |
- name: Deploy to Vercel | |
env: | |
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }} | |
run: | | |
set -e | |
npm install -g vercel | |
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |