Skip to content

Merge pull request #552 from worldbank/revert-542-weblate-sdg-metadat… #1485

Merge pull request #552 from worldbank/revert-542-weblate-sdg-metadat…

Merge pull request #552 from worldbank/revert-542-weblate-sdg-metadat… #1485

name: Build and deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
WEBLATE_API_TOKEN: ${{ secrets.WEBLATE_API_TOKEN }}
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby 3.1
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
- 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