Skip to content

Commit 9525cec

Browse files
committed
updated yaml
1 parent 1ff1bb5 commit 9525cec

File tree

2 files changed

+122
-122
lines changed

2 files changed

+122
-122
lines changed
Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
11
---
22
name: deploy-website
33
on:
4-
release:
5-
types: [published]
4+
release:
5+
types: [published]
66
permissions:
7-
contents: write
8-
pages: write # to deploy to Pages
9-
id-token: write # to verify the deployment originates from an appropriate source
7+
contents: write
8+
pages: write # to deploy to Pages
9+
id-token: write # to verify the deployment originates from an appropriate source
1010
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1111
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1212
concurrency:
13-
group: pages
14-
cancel-in-progress: false
13+
group: pages
14+
cancel-in-progress: false
1515
jobs:
16-
pre-commit-check:
17-
runs-on: ubuntu-latest
18-
container:
19-
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
20-
credentials:
21-
username: ${{ github.actor }}
22-
password: ${{ secrets.GITHUB_TOKEN }}
23-
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v2
26-
- name: Configure safe github directory
27-
shell: bash
28-
run: git config --global --add safe.directory /__w/website/website
29-
- name: Install pre-commit check
30-
shell: bash
31-
run: poetry install --only dev --sync
32-
- name: Run pre-commit check
33-
shell: bash
34-
run: poetry run pre-commit run -a
35-
deploy:
36-
needs: pre-commit-check
37-
runs-on: ubuntu-latest
38-
if: success()
39-
environment:
40-
name: github-pages
41-
url: ${{ steps.deployment.outputs.page_url }}
42-
container:
43-
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
44-
credentials:
45-
username: ${{ github.actor }}
46-
password: ${{ secrets.GITHUB_TOKEN }}
47-
steps:
48-
- name: Checkout
49-
uses: actions/checkout@v3
50-
- name: Configure safe github directory
51-
shell: bash
52-
run: git config --global --add safe.directory /__w/website/website
53-
- name: Add mkdocs-material credentials
54-
shell: bash
55-
run: poetry config http-basic.mkdocs ${{secrets.GHCR_USERNAME}} ${{secrets.GHCR_TOKEN}}
56-
- name: Install packages
57-
shell: bash
58-
run: poetry install
59-
- name: Build mkdocs website inside docker
60-
shell: bash
61-
run: make docs_build
62-
env:
63-
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
64-
- name: Setup Pages
65-
uses: actions/configure-pages@v3
66-
- name: Upload artifact
67-
uses: actions/upload-pages-artifact@v2
68-
with:
16+
pre-commit-check:
17+
runs-on: ubuntu-latest
18+
container:
19+
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
20+
credentials:
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
- name: Configure safe github directory
27+
shell: bash
28+
run: git config --global --add safe.directory /__w/website/website
29+
- name: Install pre-commit check
30+
shell: bash
31+
run: poetry install --only dev --sync
32+
- name: Run pre-commit check
33+
shell: bash
34+
run: poetry run pre-commit run -a
35+
deploy:
36+
needs: pre-commit-check
37+
runs-on: ubuntu-latest
38+
if: success()
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
container:
43+
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
44+
credentials:
45+
username: ${{ github.actor }}
46+
password: ${{ secrets.GITHUB_TOKEN }}
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v3
50+
- name: Configure safe github directory
51+
shell: bash
52+
run: git config --global --add safe.directory /__w/website/website
53+
- name: Add mkdocs-material credentials
54+
shell: bash
55+
run: poetry config http-basic.mkdocs ${{secrets.GHCR_USERNAME}} ${{secrets.GHCR_TOKEN}}
56+
- name: Install packages
57+
shell: bash
58+
run: poetry install
59+
- name: Build mkdocs website inside docker
60+
shell: bash
61+
run: make docs_build
62+
env:
63+
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
64+
- name: Setup Pages
65+
uses: actions/configure-pages@v3
66+
- name: Upload artifact
67+
uses: actions/upload-pages-artifact@v2
68+
with:
6969
# Upload entire repository
70-
path: ./site
71-
- name: Deploy to GitHub Pages
72-
id: deployment
73-
uses: actions/deploy-pages@v2
70+
path: ./site
71+
- name: Deploy to GitHub Pages
72+
id: deployment
73+
uses: actions/deploy-pages@v2

.github/workflows/test_website.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -3,66 +3,66 @@ name: test-deploy-website
33
on:
44
# release:
55
# types: [published]
6-
push:
7-
branches:
8-
- main
6+
push:
7+
branches:
8+
- main
99
permissions:
10-
contents: write
11-
pages: write # to deploy to Pages
12-
id-token: write # to verify the deployment originates from an appropriate source
10+
contents: write
11+
pages: write # to deploy to Pages
12+
id-token: write # to verify the deployment originates from an appropriate source
1313
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1414
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1515
concurrency:
16-
group: pages
17-
cancel-in-progress: false
16+
group: pages
17+
cancel-in-progress: false
1818
jobs:
19-
pre-commit-check:
20-
runs-on: ubuntu-latest
21-
container:
22-
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
23-
credentials:
24-
username: ${{ github.actor }}
25-
password: ${{ secrets.GITHUB_TOKEN }}
26-
steps:
27-
- name: Checkout code
28-
uses: actions/checkout@v2
29-
- name: Configure safe github directory
30-
shell: bash
31-
run: git config --global --add safe.directory /__w/website/website
32-
- name: Install pre-commit check
33-
shell: bash
34-
run: poetry install --only dev --sync
35-
- name: Run pre-commit check
36-
shell: bash
37-
run: poetry run pre-commit run -a
38-
check_build_website:
39-
needs: pre-commit-check
40-
runs-on: ubuntu-latest
41-
if: success()
42-
environment:
43-
name: github-pages
44-
url: ${{ steps.deployment.outputs.page_url }}
45-
container:
46-
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
47-
credentials:
48-
username: ${{ github.actor }}
49-
password: ${{ secrets.GITHUB_TOKEN }}
50-
steps:
51-
- name: Checkout
52-
uses: actions/checkout@v3
53-
- name: Configure safe github directory
54-
shell: bash
55-
run: git config --global --add safe.directory /__w/website/website
56-
- name: Add mkdocs-material credentials
57-
shell: bash
58-
run: poetry config http-basic.mkdocs ${{secrets.GHCR_USERNAME}} ${{secrets.GHCR_TOKEN}}
59-
- name: Install packages
60-
shell: bash
61-
run: poetry install
62-
- name: Build mkdocs website inside docker
63-
shell: bash
64-
run: make docs_build
65-
env:
66-
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
67-
- name: Setup Pages
68-
uses: actions/configure-pages@v3
19+
pre-commit-check:
20+
runs-on: ubuntu-latest
21+
container:
22+
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
23+
credentials:
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
- name: Configure safe github directory
30+
shell: bash
31+
run: git config --global --add safe.directory /__w/website/website
32+
- name: Install pre-commit check
33+
shell: bash
34+
run: poetry install --only dev --sync
35+
- name: Run pre-commit check
36+
shell: bash
37+
run: poetry run pre-commit run -a
38+
check_build_website:
39+
needs: pre-commit-check
40+
runs-on: ubuntu-latest
41+
if: success()
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
container:
46+
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
47+
credentials:
48+
username: ${{ github.actor }}
49+
password: ${{ secrets.GITHUB_TOKEN }}
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v3
53+
- name: Configure safe github directory
54+
shell: bash
55+
run: git config --global --add safe.directory /__w/website/website
56+
- name: Add mkdocs-material credentials
57+
shell: bash
58+
run: poetry config http-basic.mkdocs ${{secrets.GHCR_USERNAME}} ${{secrets.GHCR_TOKEN}}
59+
- name: Install packages
60+
shell: bash
61+
run: poetry install
62+
- name: Build mkdocs website inside docker
63+
shell: bash
64+
run: make docs_build
65+
env:
66+
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
67+
- name: Setup Pages
68+
uses: actions/configure-pages@v3

0 commit comments

Comments
 (0)