Skip to content

Merge pull request #3764 from ONSdigital/develop #193

Merge pull request #3764 from ONSdigital/develop

Merge pull request #3764 from ONSdigital/develop #193

# ****************************************************************************
# NOTES:
#
# This is an example of a production deployment that uses GitHub Pages along
# with a second "production" GitHub organisation. If you prefer to implement
# your own workflow, or do not need production deployments, then you should
# delete this file.
#
# In order for this to work, you must replace PRODUCTION_ORGANISATION below
# with the name of your production GitHub organisation, under REPOSITORY_NAME.
#
# For example, if your production organisation is "my-stats-org", then use:
#
# REPOSITORY_NAME: my-stats-org/my-stats-org.github.io
#
# ****************************************************************************
name: Deploy to production
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: actions/checkout@v2
with:
persist-credentials: false
- 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.production
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
REPOSITORY_NAME: sustainabledevelopment-uk/sustainabledevelopment-uk.github.io
ACCESS_TOKEN: ${{ secrets.token }}
BRANCH: master
FOLDER: _site
CLEAN: true