Skip to content

πŸ”’οΈ chore(deps-dev): Bump jinja2 from 3.1.2 to 3.1.3 (#367) #231

πŸ”’οΈ chore(deps-dev): Bump jinja2 from 3.1.2 to 3.1.3 (#367)

πŸ”’οΈ chore(deps-dev): Bump jinja2 from 3.1.2 to 3.1.3 (#367) #231

Workflow file for this run

name: Release (build and publish πŸ“¦, generate release notes for version tag)
env:
# Specify Python version to quick change in the future
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
PYTHON_VERSION: "3.9"
on:
push:
branches:
- main
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Check if there is a parent commit
id: check-parent-commit
run: |
echo "sha=$(git rev-parse --verify --quiet HEAD^)" >> $GITHUB_OUTPUT
- name: Detect and tag new version
id: check-version
if: steps.check-parent-commit.outputs.sha
uses: salsify/action-detect-and-tag-new-version@v2
with:
version-command: |
bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
- name: Bump version for developmental release
if: steps.check-version.outputs.tag != ''
run: |
poetry version patch &&
version=$(poetry version | awk '{ print $2 }') &&
poetry version $version.dev.$(date +%Y%m%d%H%M%S)
- name: Build package
run: |
poetry build --ansi
- name: Publish πŸ“¦ package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish dev package on TestPyPI
if: steps.check-version.outputs.tag != ''
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish the release notes
uses: release-drafter/release-drafter@master
with:
publish: ${{ steps.check-version.outputs.tag != '' }}
tag: ${{ steps.check-version.outputs.tag }}
name: ${{ steps.check-version.outputs.tag }} of Playlist Along
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}