forked from blizzthewolf/SeaCogs
feat(workflow): updated workflow to the version on the UpdateChecker branch
This commit is contained in:
parent
04101cfd1b
commit
a1b038057e
1 changed files with 25 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Build Documentation and Lint Code
|
||||
name: Actions
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -6,7 +6,20 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
build and lint:
|
||||
Lint Code (Pylint):
|
||||
runs-on: docker
|
||||
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install --with dev --no-root
|
||||
|
||||
- name: Analysing code with Pylint
|
||||
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||
|
||||
Build Documentation (MkDocs):
|
||||
runs-on: docker
|
||||
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||
steps:
|
||||
|
@ -16,16 +29,19 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install --with docs --with dev --no-root
|
||||
run: poetry install --with docs --no-root
|
||||
|
||||
- name: Build the documentation
|
||||
run: mkdocs build
|
||||
continue-on-error: true
|
||||
|
||||
- name: Set Environment Variables
|
||||
- name: Set environment variables
|
||||
uses: actions/env@v2
|
||||
|
||||
- name: Deploy the documentation to Meli (CoastalCommits Pages)
|
||||
- name: Build documentation
|
||||
run: |
|
||||
export SITE_URL="https://$CI_ACTION_REF_NAME_SLUG.seacogs.coastalcommits.com"
|
||||
export EDIT_URI="src/branch/$CI_ACTION_REF_NAME/.docs"
|
||||
mkdocs build -v
|
||||
continue-on-error: true
|
||||
|
||||
- name: Deploy documentation
|
||||
run: |
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[0;33m'
|
||||
|
@ -48,6 +64,3 @@ jobs:
|
|||
env:
|
||||
GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Analysing the code with Pylint
|
||||
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||
|
|
Loading…
Reference in a new issue