Skip to content

fix_unpack_error_url #193

fix_unpack_error_url

fix_unpack_error_url #193

name: Preview Site Wrapper
# Controls when the action will run.
on:
# Triggers the workflow on pull request events but only for the master branch
pull_request:
branches: [ master ]
types: [opened, synchronize, edited, reopened]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-for-netlify"
triger-previewing-site:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install requirements
run: python3.8 -m pip install -r requirements.txt
- name: Install Material Insiders
if: github.event.pull_request.head.repo.fork == false
run: python3.8 -m pip install git+https://${{ secrets.ACCESS_TOKEN }}@github.com/iromise/mkdocs-material-insiders.git
- name: Build Docs
run: python3.8 ./scripts/docs.py build-all
- name: Zip Site
run: bash ./scripts/zip-site.sh
- uses: actions/upload-artifact@v2
with:
name: site-zip
path: ./site.zip
- name: Triger Inner workflow
run: echo "triger inner workflow"