Merge pull request #344 from jaamarks/issue343-max-mem-mb #50
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
# Basic action for making a release and adding build artifacts. | |
on: | |
push: | |
tags: | |
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Upload Release Asset | |
jobs: | |
build: | |
name: Upload Release Asset | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip poetry | |
- name: Build project | |
id: poetry | |
run: | | |
poetry version ${GITHUB_REF_NAME} | |
poetry build | |
echo "whl_loc=$(find dist -type f -name *.whl)" >> $GITHUB_OUTPUT | |
- name: Create and Upload Release Asset to GitHub | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: "./dist/*" | |
draft: true | |
generateReleaseNotes: true | |
prerelease: true | |
- name: Build Docs # Need to update install directions to use new release | |
run: | | |
poetry install | |
poetry run make -C docs html | |
- name: Deploy Docs to gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html |