Skip to content

Commit

Permalink
fix(ci): ensure build website action works (#372)
Browse files Browse the repository at this point in the history
* ci: run CI on ci file update

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>

* TEST(ci): run on all branches

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>

* fix: it's yml not yaml

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>

* ci: simplify action using mkdocs

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>

* ci: give bot permissions to write content

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>

* Revert "TEST(ci): run on all branches"

This reverts commit 55ef160.

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>

---------

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>
  • Loading branch information
AlessandroPomponio committed Jul 22, 2024
1 parent 27cd22e commit e219c31
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ on:
- "docs/**"
- mkdocs.yml
- Pipfile
- .github/workflows/ci.yml

jobs:
build-and-push:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -18,11 +21,4 @@ jobs:
python-version: "3.10"
- run: python -m pip install --upgrade pipenv wheel
- run: pipenv update
- run: pipenv run mkdocs build
- uses: actions/checkout@v3
with:
ref: gh-pages
path: pages
- run: |
cp -v pages/index.yaml site/
- run: pipenv run ghp-import site -p --force
- run: pipenv run mkdocs gh-deploy

0 comments on commit e219c31

Please sign in to comment.