Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olinelson committed Dec 17, 2024
1 parent 9d65574 commit 2fea75c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflow/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 1,51 @@
name: Deploy to GitHub pages

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- run: yarn install

- name: Build
env:
BRIDGETOWN_ENV: production
run: bin/bridgetown deploy

- name: Upload build artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./output

deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 2fea75c

Please sign in to comment.