New: cappuccino.dev CNAME for github pages support. #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: Ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Middleman and dependencies to build the site | |
uses: ruby/[email protected] | |
with: | |
ruby-version: 2.6 | |
bundler-cache: true | |
bundler: 1.17.3 | |
- run: bundle exec middleman build --verbose | |
- name: Push to destination repo | |
uses: cpina/github-action-push-to-another-repository@9e487f29582587eeb4837c0552c886bb0644b6b9 | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: 'build' | |
destination-github-username: 'cappuccino' | |
destination-repository-name: 'cappuccino.github.io' | |
user-email: [email protected] | |
target-branch: master |