Skip to content

bugfix: allUpdates -> allowUpdates in Create Release action #42

bugfix: allUpdates -> allowUpdates in Create Release action

bugfix: allUpdates -> allowUpdates in Create Release action #42

Workflow file for this run

# 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
# we are releasing a draft, so don't build docs
# - 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