Merge pull request #543 from worldbank/harvest-20230803 #1476
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: Build and deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
WEBLATE_API_TOKEN: ${{ secrets.WEBLATE_API_TOKEN }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Ruby 2.6 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "2.6" | |
- name: Set up Node 10.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10.x' | |
- name: Install dependencies | |
run: make install | |
- name: Build the site | |
run: make publish | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
ACCESS_TOKEN: ${{ secrets.token }} | |
BRANCH: gh-pages | |
FOLDER: www/_site | |
CLEAN: true |