New dev workflow:

Contribution now have to be made on the main branch.

A new `documentation` branch is created. Github and Gitlab pipelines are
now working on this branch.

Develop branch is deprecated, as it is no more necessary.
This commit is contained in:
John Livingston
2023-03-07 14:14:19 +01:00
parent 9fd4876e23
commit 0eb7e75421
11 changed files with 57 additions and 20 deletions

View File

@ -3,7 +3,7 @@ name: github pages
on:
push:
branches:
- main # Set a branch to deploy
- documentation # Set a branch to deploy
pull_request:
jobs:
@ -26,7 +26,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/documentation'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./support/documentation/public