diff --git a/.github/workflows/deploy_master_to_github_pages.yml b/.github/workflows/deploy_master_to_github_pages.yml new file mode 100644 index 0000000000..543745cafd --- /dev/null +++ b/.github/workflows/deploy_master_to_github_pages.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/pr_to_master.yml similarity index 97% rename from .github/workflows/main.yml rename to .github/workflows/pr_to_master.yml index bb116ce101..0ce05e7c6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/pr_to_master.yml @@ -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 ] diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c4d5e7d677..df9ff4803c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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 diff --git a/README.md b/README.md index 021a1c2663..842f438f5e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/content/CNAME b/content/CNAME new file mode 100644 index 0000000000..da95b17ded --- /dev/null +++ b/content/CNAME @@ -0,0 +1 @@ +static.geotribu.fr diff --git a/content/assets/images/geotribu/banner_geotribu.jpg b/content/assets/images/geotribu/banner_geotribu.jpg index 28df71e9dc..2cc806233e 100644 Binary files a/content/assets/images/geotribu/banner_geotribu.jpg and b/content/assets/images/geotribu/banner_geotribu.jpg differ