Skip to content

Commit

Permalink
Automate deployment - Merge #5 from geotribu/ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Mar 22, 2020
2 parents 53836b9 + 6cee293 commit 586bd14
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy_master_to_github_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions
name: Deploy to Github Pages

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]

# 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"
deploy:
# 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:
- name: Get source code
uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Cache project dependencies (pip)
uses: actions/cache@v1
with:
path: ~/.cache/pip # This path is specific to Ubuntu
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Deploy to Github Pages
run: mkdocs gh-deploy -f .\src\mkdocs\mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# This is a basic workflow to help you get started with Actions
name: CI
name: Pull Request Checker

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is a basic workflow to help you get started with Actions
name: CI
name: Code Rules Checker

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Site web de Geotribu

![CI](https://github.com/geotribu/website/workflows/CI/badge.svg)
![Pull Request Checker](https://github.com/geotribu/website/workflows/Pull%20Request%20Checker/badge.svg)

Sources et contenus du site geotribu.net
1 change: 1 addition & 0 deletions content/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static.geotribu.fr
Binary file modified content/assets/images/geotribu/banner_geotribu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 586bd14

Please sign in to comment.