adding Laurent Montagano-test4 #47
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: Build and deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
github-pages: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Ruby 2.6 | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: 🔧 Install system dependencies | |
if: runner.os == 'Linux' | |
env: | |
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y lftp | |
sudo /sbin/modprobe tun | |
sudo apt-get install network-manager-openconnect-gnome | |
- name: 🔨 Build site | |
uses: lemonarc/[email protected] | |
- name: Prepare deployment | |
run: sudo cp _site/home/index.html _site/index.html | |
- name: 🚀 Deploy gh_pages | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: _site | |
single-commit: true |