Skip to content

Commit

Permalink
Add github workflow for deploying to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed Apr 1, 2024
1 parent 843bd07 commit 1c28eb6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to Surge

on:
push:
branches:
- main

env:
SURGE_DOMAIN: https://sotm-latam-2024.surge.sh
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}

jobs:
build_and_deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true

- name: Build Jekyll site
run: bundle exec jekyll build

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"

- name: Install surge
run: npm install --global surge

- name: Deploy to Surge
run: surge _site ${{ env.SURGE_DOMAIN }}

0 comments on commit 1c28eb6

Please sign in to comment.