added develop branch properly.
Added checkout rules to enshure the right thing is published
This commit is contained in:
@@ -3,7 +3,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop branch to create pre-release
|
- develop
|
||||||
tags:
|
tags:
|
||||||
- v* # Push tags to trigger the workflow
|
- v* # Push tags to trigger the workflow
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -53,9 +53,18 @@ jobs:
|
|||||||
needs: test-install
|
needs: test-install
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout Repository Tags
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
if: github.ref == 'refs/tags/v*'
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
branch: 'main'
|
||||||
|
- name: Checkout Repository (Develop)
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
if: github.ref == "refs/heads/develop"
|
||||||
|
with:
|
||||||
|
fetch-depth: '0'
|
||||||
|
branch: 'develop'
|
||||||
- name: Set up Poetry 📦
|
- name: Set up Poetry 📦
|
||||||
uses: JRubics/poetry-publish@v1.16
|
uses: JRubics/poetry-publish@v1.16
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user