Skip to content

Commit

Permalink
🔥 first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfim-ibm committed Jun 8, 2022
0 parents commit 21c5146
Show file tree
Hide file tree
Showing 782 changed files with 128,640 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.generated/* linguist-generated=true

*.sh eol=lf
4 changes: 4 additions & 0 deletions .github/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This enables DCO bot for you, please take a look https://github.com/probot/dco
# for more details.
require:
members: false
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Run CI"

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches:
- "**"
- "!gh-pages"

env:
POETRY_VIRTUALENVS_CREATE: false

jobs:
test-build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pip install poetry
- uses: actions/setup-python@v3
with:
python-version: 3.x
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- name: Install dependencies
run: poetry install
- run: mkdocs build --verbose --clean
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Build docs"

on:
push:
branches:
- main

env:
POETRY_VIRTUALENVS_CREATE: false


jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pip install poetry
- uses: actions/setup-python@v3
with:
python-version: 3.x
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- name: Install dependencies
run: poetry install
- name: Build and push docs
run: mkdocs gh-deploy --force
32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and publish to PyPI

on:
release:
types: [published]

permissions:
contents: read

env:
POETRY_VIRTUALENVS_CREATE: false
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pip install poetry
- uses: actions/setup-python@v3
with:
python-version: 3.x
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- name: Install dependencies
run: poetry install
# - name: Config PyPI token
# # According to this issue, the ENV variable is ignored https://github.com/python-poetry/poetry/issues/2210.
# run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- name: Build and publish
run: poetry publish --build --no-interaction --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
Loading

0 comments on commit 21c5146

Please sign in to comment.