Skip to content

Accept profile files #4

Accept profile files

Accept profile files #4

Workflow file for this run

# This workflow releases a new version of the package.
name: Release
# Only trigger when a pull request into main branch is merged.
on:
pull_request:
types: [closed]
branches:
- main
jobs:
release:
if: "github.event.pull_request.merged == true"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: snok/[email protected]
- name: Check pyproject.toml file
run: poetry check
- name: Get package version
run: echo "PACKAGE_VERSION=$(poetry version -s)" >> $GITHUB_ENV
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, no need to create your own.
with:
tag_name: ${{ env.PACKAGE_VERSION }}
release_name: ${{ github.event.pull_request.title }}
body: ${{ github.event.pull_request.body }}
draft: false
prerelease: false