Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

fix formatting

fix formatting #3

name: Validate and Publish
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}
jobs:
build-branch:
name: Build, branch, publish
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup and run tests
uses: ./.github/actions/setup-and-run-tests
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: calver
- name: Set version
shell: bash
run: |
set -e -x -o pipefail
poetry version ${{ steps.version.outputs.version }}
- name: Create release branch
uses: EndBug/[email protected]
with:
default_author: github_actor
new_branch: release/${{ steps.version.outputs.version }}
push: true
- name: Build release
shell: bash
run: |
set -e -x -o pipefail
poetry build --format wheel
- name: Upload release as artifact
uses: actions/upload-artifact@v2
with:
name: wheel
path: dist/*.whl