mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-13 03:40:31 +02:00
Compare commits
8 Commits
2.0.0-rc+7
...
2.0.0-prer
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d5411a8ae | |||
| 89351d714b | |||
| c24f8933fb | |||
| 0bed0e0da4 | |||
| 8463eef907 | |||
| 5903de2aad | |||
| 0bf89fe14d | |||
| d54146e05b |
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -6,7 +6,6 @@ on:
|
|||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**/.github/**"
|
|
||||||
- "**/.gitignore"
|
- "**/.gitignore"
|
||||||
- "**/.vscode/**"
|
- "**/.vscode/**"
|
||||||
- "**/README.md"
|
- "**/README.md"
|
||||||
@@ -65,25 +64,33 @@ jobs:
|
|||||||
git config --local user.email "15138480+creyD@users.noreply.github.com"
|
git config --local user.email "15138480+creyD@users.noreply.github.com"
|
||||||
git config --local user.name "creyD"
|
git config --local user.name "creyD"
|
||||||
|
|
||||||
|
- name: Set version format
|
||||||
|
id: set_version
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.head_ref }}" == "master" ]]; then
|
||||||
|
echo "V_FORMAT=${major}.${minor}.${patch}" >> $GITHUB_ENV
|
||||||
|
elif [[ "${{ github.head_ref }}" == "dev" ]]; then
|
||||||
|
echo "V_FORMAT=${major}.${minor}.${patch}-prerelease${increment}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: get version format
|
||||||
|
run: echo "${{ steps.set_version.outputs.V_FORMAT }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
- name: Git Version
|
- name: Git Version
|
||||||
uses: codacy/git-version@2.8.0
|
uses: PaulHatch/semantic-version@v5.4.0
|
||||||
id: git_version
|
id: git_version
|
||||||
with:
|
with:
|
||||||
minor-identifier: "feat:"
|
tag_prefix: ""
|
||||||
major-identifier: "breaking:"
|
major_pattern: "breaking:"
|
||||||
release-branch: ${{ github.head_ref }}
|
minor_pattern: "feat:"
|
||||||
|
enable_prerelease_mode: false
|
||||||
|
version_format: "${major}.${minor}.${patch}-prerelease${increment}"
|
||||||
|
|
||||||
- name: Create & Push Tag
|
- name: Create & Push Tag
|
||||||
if: github.head_ref == 'master' || github.head_ref == 'dev'
|
if: github.head_ref == 'master' || github.head_ref == 'dev'
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.head_ref }}" == "master" ]; then
|
git tag ${{ steps.git_version.outputs.version }}
|
||||||
git tag ${{ steps.git_version.outputs.version }}
|
git push origin ${{ steps.git_version.outputs.version }}
|
||||||
git push origin ${{ steps.git_version.outputs.version }}
|
|
||||||
elif [ "${{ github.head_ref }}" == "dev" ]; then
|
|
||||||
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
|
||||||
git tag ${{ steps.git_version.outputs.version }}-rc+${calculatedSha}
|
|
||||||
git push origin ${{ steps.git_version.outputs.version }}-rc+${calculatedSha}
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user