Deploy to staging #2219
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 staging | |
on: | |
push: | |
branches: | |
- develop | |
schedule: | |
- cron: '10 0 * * *' | |
repository_dispatch: | |
types: rebuild-staging | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
- name: Build the site | |
run: | | |
gem install bundler -v 2.4.22 | |
bundle config path vendor/bundle | |
make install | |
make build.staging | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
ACCESS_TOKEN: ${{ secrets.token }} | |
BRANCH: gh-pages | |
FOLDER: _site | |
CLEAN: true |