Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Release CI (#61)
Browse files Browse the repository at this point in the history
* test change publish

* on PR

* use secrets

* split release

* only on release
  • Loading branch information
cgarciae authored Feb 4, 2022
1 parent 83e0ab8 commit c466873
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update GitHub Pages
on:
release:
jobs:
build-and-deploy:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
Expand All @@ -22,15 +22,43 @@ jobs:
run: |
poetry config virtualenvs.create false
poetry install
- name: Build Docs πŸ”¨
run: |
cp README.md docs/index.md
python scripts/update_docs.py
mkdocs build
- name: Deploy πŸš€
- name: Deploy Page πŸš€
uses: JamesIves/github-pages-deploy-action@4.1.6
with:
branch: gh-pages
folder: site

publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v2.3.1

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Poetry πŸ“–
uses: snok/install-poetry@v1.1.1
with:
version: 1.1.4

- name: Install Dependencies
run: |
poetry config virtualenvs.create false
poetry install
- name: Publish to PyPI
run: |
poetry build
poetry publish \
--username ${{ secrets.PYPI_USERNAME }} \
--password ${{ secrets.PYPI_PASSWORD }}
File renamed without changes.

0 comments on commit c466873

Please sign in to comment.