Skip to content

action deploys to surge.sh #1

action deploys to surge.sh

action deploys to surge.sh #1

Workflow file for this run

name: Deploy PR CI
on:
issue_comment:
types: [created]
push:
branches-ignore:
- main
pull_request:
types:
- opened
- edited
- synchronize
jobs:
release:
name: Deploy website
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && (contains(github.event.comment.body, 'Deploy') || contains(github.event.comment.body, 'deploy') || github.event_name == 'push' || github.event_name == 'pull_request')"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.5'
bundler-cache: true
- name: Build static site
run: bundle exec jekyll build
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install surge
run: npm install -g surge
- name: Deploy
run: surge _site/ ${{vars.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN}}