[ new ] Ragoût de cerf aux câpres #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |