Skip to content

Add deploy preview action #1

Add deploy preview action

Add deploy preview action #1

Workflow file for this run

name: Deploy PR Preview
# Only run when a PR have the 'preview' label
on:
pull_request:
types:
- labeled
concurrency: preview-${{ github.ref }}
jobs:
build-and-deploy-preview:
if: github.event.label.name == 'preview'
runs-on: ubuntu-latest
container: sphinxdoc/sphinx
steps:
- name: Install git 🔧
shell: bash
run: |
apt-get update
apt-get install -y git
- name: Checkout 🛎️
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install 🔧
shell: bash
run: |
apt-get install -y graphviz rsync
pip3 install -r requirements.txt
- name: Build 🛠
shell: bash
run: ./scripts/build.sh
- name: Deploy preview 🚀
uses: rossjrw/pr-preview-action@v1
with:
preview-branch: gh-pages
umbrella-dir: pr-preview
custom-url: developer.concordium.software
source-dir: ./build
action: deploy