Set the Python version of the release workflow to 3.10 #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |