Skip to content

bump: 0.1.2

bump: 0.1.2 #332

Workflow file for this run

name: Package
on:
push:
branches:
- main
- alpha
permissions:
id-token: write
contents: write
jobs:
package:
name: Package
environment: production
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Setup | Force correct release branch on workflow sha
run: |
git clone https://github.com/${{ github.repository }} .
git checkout -B ${{ github.ref_name }} ${{ github.sha }}
git config user.name "cpg-software-ci-bot"
git config user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- name: Action | Semantic Version Release
id: release
uses: python-semantic-release/[email protected]
with:
root_options: "-v"
git_committer_email: "[email protected]"
git_committer_name: "cpg-software-ci-bot"
github_token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: Publish | Upload package to PyPI
uses: pypa/[email protected]
if: steps.release.outputs.released == 'true'
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish | Upload to GitHub Release Assets
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.BOT_ACCESS_TOKEN }}
tag: ${{ steps.release.outputs.tag }}