Skip to content

Set the Python version of the release workflow to 3.10 #38

Set the Python version of the release workflow to 3.10

Set the Python version of the release workflow to 3.10 #38

Workflow file for this run

name: 🍦 Create Release
on:
pull_request:
branches:
- main
types:
- closed
permissions:
contents: write
jobs:
build:
if: ${{ github.event.pull_request.merged }}
name: 🏗️ Build package and publish to pypi
runs-on: ubuntu-latest
concurrency: build
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
with:
ref: 'main'
fetch-depth: 0
token: ${{ secrets.RELEASE_WORKFLOW }}
- name: 🐍Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.10
- name: 🔨 Setup poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.4.0"
- name: 🔨Install dependencies
run: |
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi --with dev
- name: 🍦 Release new version
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
cp -r configs template
semantic-release publish
env:
GH_TOKEN: ${{secrets.RELEASE_WORKFLOW}}
REPOSITORY_PASSWORD: ${{secrets.PYPI_TOKEN}}
REPOSITORY_USERNAME: __token__
documentation:
if: ${{ github.event.pull_request.merged }}
uses: ./.github/workflows/docs.yaml