Skip to content

Commit

Permalink
Add GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed Jul 18, 2024
1 parent c211619 commit 4c9e68a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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: Build website
run: |
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 }}

0 comments on commit 4c9e68a

Please sign in to comment.