chore(actions): update pypa/gh-action-pypi-publish action to v1.12.3 #332
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: Merge into develop branch | |
on: | |
push: | |
branches: | |
- develop | |
permissions: | |
id-token: write | |
contents: read | |
packages: read | |
jobs: | |
prepare: | |
name: Calculate Version and Build Number | |
runs-on: ubuntu-24.04 | |
outputs: | |
version: ${{ steps.version.outputs.value }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Find Latest Tag | |
id: latest_tag | |
uses: oprypin/[email protected] | |
with: | |
repository: ${{ github.repository }} | |
regex: '^v\d+\.\d+\.\d+' | |
releases-only: true | |
- name: Extract semantic version | |
id: semantic | |
run: echo "value=$(echo ${{ steps.latest_tag.outputs.tag }} | sed -r 's|([0-9]+.[0-9]+.[0-9]+).*|\1|g')" >> $GITHUB_OUTPUT | |
- name: Count number or releases for tag | |
id: build_number | |
run: echo "value=$(($(git tag | grep -c ${{ steps.semantic.outputs.value }}.pre) + 1))" >> $GITHUB_OUTPUT | |
- name: Compute version | |
id: version | |
run: echo "value=${{ steps.semantic.outputs.value }}.pre${{ steps.build_number.outputs.value }}" >> $GITHUB_OUTPUT | |
prerelease-tag: | |
name: Create Prerelease Tag | |
runs-on: ubuntu-24.04 | |
needs: | |
- prepare | |
steps: | |
- uses: ydataai/[email protected] | |
with: | |
tag: ${{ needs.prepare.outputs.version }} | |
message: ${{ github.event.head_commit.message }} | |
github_token: ${{ secrets.ACCESS_TOKEN }} |