Generate og images for each wiki documents #144
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: | |
- main | |
env: | |
BRIDGETOWN_ENV: production | |
jobs: | |
deploy: | |
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: Refresh Cache | |
run: bin/bridgetown clean | |
- name: Build Frontend | |
run: bin/bridgetown frontend:build | |
- name: Build Static Site | |
run: bin/bridgetown build -V | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output |