Skip to content

feat AutoRelease

feat AutoRelease #11

Workflow file for this run

name: Build, Version, Release and Publish Package
on:
pull_request:
branches:
- main
## For manual executions
workflow_dispatch:
with:
ref: ${{ github.head_ref }}

Check failure on line 11 in .github/workflows/CD.yaml

View workflow run for this annotation

GitHub Actions / Build, Version, Release and Publish Package

Invalid workflow file

The workflow is not valid. .github/workflows/CD.yaml (Line: 11, Col: 12): Unrecognized named-value: 'github'. Located at position 1 within expression: github.head_ref
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Poetry
run: |
pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
- name: Increment version
run: |
poetry version patch # params: patch, minor, major
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git commit -am "chore: increment version"
git push
git tag $(poetry version -s)
git push origin --tags
# - name: Build package
# run: poetry build
#
# - name: Publish package to PyPI
# env:
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
# run: poetry publish --username __token__ --password $POETRY_PYPI_TOKEN_PYPI