Skip to content

[ new ] Ragoût de cerf aux câpres #7

[ new ] Ragoût de cerf aux câpres

[ new ] Ragoût de cerf aux câpres #7

Workflow file for this run

name: Ubuntu build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Initialise variables
run: |
if [[ '${{ github.ref }}' == 'refs/heads/master' ]]; then
echo "RECIPTACLE_DEPLOY=true" >> $GITHUB_ENV
fi
########################################################################
## INSTALLATION STEPS
########################################################################
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y markdown
########################################################################
## BUILD
########################################################################
# By default github actions do not pull the repo
- name: Checkout stdlib
uses: actions/checkout@v2
- name: Build website
run: |
cd html
make
cd ..
mkdir deploy
mv html/*.html html/*.css deploy/
########################################################################
## DEPLOYMENT
########################################################################
- name: Deploy HTML
uses: JamesIves/[email protected]
if: ${{ success() && env.RECIPTACLE_DEPLOY }}
with:
branch: gh-pages
folder: deploy
git-config-name: Github Actions