This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
fix formatting #3
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: 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/version-increment@2023.10.1 | |
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/add-and-commit@v9.1.3 | |
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 |