1.3.6 #25
Workflow file for this run
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
name: publish | |
on: | |
release: | |
types: [created] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "publish" | |
cancel-in-progress: false | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: pages | |
uses: actions/configure-pages@v5 | |
- name: set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".python-version" | |
cache: "pip" | |
cache-dependency-path: "pyproject.toml" | |
- name: install invoke | |
run: pip install invoke | |
- name: install dependencies | |
run: pip install '.[dev]' | |
- name: build | |
run: inv build | |
- name: publish pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }} | |
run: inv publish | |
- name: generate docs | |
run: inv docs | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: _site/arcee | |
- id: publish-docs | |
uses: actions/deploy-pages@v4 |