Skip to content

Patch hurlfmt --to html with cert tokens (https://github.com/Orange-O… #513

Patch hurlfmt --to html with cert tokens (https://github.com/Orange-O…

Patch hurlfmt --to html with cert tokens (https://github.com/Orange-O… #513

Workflow file for this run

name: Publish
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
- name: Set up build env
run: |
python3 --version
pip3 --version
sudo apt-get install python3-setuptools python3-pip
pip3 install --user -r ./sites/requirements.txt
sudo gem install jekyll
- name: Check style
run: |
cd sites
./check_fmt.sh
- name: Build
run: |
cd sites
./build.sh
- name: Publish
if: github.ref == 'refs/heads/master'
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_PORT: ${{ secrets.SSH_PORT }}
run: |
export PRIVATE_KEY_FILE="$PWD/key"
echo "$PRIVATE_KEY" > "$PRIVATE_KEY_FILE"
chmod 600 "$PRIVATE_KEY_FILE"
cd sites
./deploy.sh