Skip to content

Merge pull request #56 from ginzarb/direct-upload-from-source-branch #26

Merge pull request #56 from ginzarb/direct-upload-from-source-branch

Merge pull request #56 from ginzarb/direct-upload-from-source-branch #26

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3
bundler-cache: true
- name: Build with Middleman
run: bundle exec middleman build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "build/"
deploy:
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4