-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from MinBZK/feature/add-ci-tools
Feature/add ci tools
- Loading branch information
Showing
4 changed files
with
87 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "friday" | ||
time: "10:00" | ||
timezone: "Europe/Amsterdam" | ||
open-pull-requests-limit: 5 | ||
reviewers: | ||
- "ruthkoole" | ||
groups: | ||
all-github-actions: | ||
patterns: | ||
- "*" | ||
|
||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "friday" | ||
time: "10:00" | ||
timezone: "Europe/Amsterdam" | ||
open-pull-requests-limit: 5 | ||
reviewers: | ||
- "ruthkoole" | ||
groups: | ||
all-pip-packages: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,17 @@ on: | |
- main | ||
|
||
jobs: | ||
build: | ||
name: pages-build-deployment | ||
deploy: | ||
name: deploy main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Deploy MkDocs | ||
uses: mhausenblas/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REQUIREMENTS: requirements.txt | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
cache: 'pip' | ||
|
||
- run: pip install -r requirements.txt | ||
|
||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Deploy PR previews | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
|
||
concurrency: preview-${{ github.ref }} | ||
|
||
jobs: | ||
deploy: | ||
name: deploy PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
if: github.event.action != 'closed' | ||
with: | ||
python-version: 3.x | ||
cache: 'pip' | ||
|
||
- name: install dependencies | ||
if: github.event.action != 'closed' | ||
run: pip install -r requirements.txt | ||
|
||
- name: build preview | ||
if: github.event.action != 'closed' | ||
run: mkdocs build | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: github.event.action != 'closed' | ||
with: | ||
name: AlgoritmeKaderWebsite-${{github.event.number}} | ||
path: ./site/ | ||
|
||
- name: Deploy preview | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: ./site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# build files | ||
site | ||
site | ||
.venv/ |