mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 01:09:06 +08:00
Get the proper commit to create the release
This commit is contained in:
parent
ce7743b7d6
commit
7a944e94bb
@ -65,6 +65,8 @@ jobs:
|
|||||||
name: Create tags
|
name: Create tags
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [parse-version, find-rc-tag]
|
needs: [parse-version, find-rc-tag]
|
||||||
|
outputs:
|
||||||
|
main_commit: ${{ steps.export-main-commit.main_commit }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials]
|
repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials]
|
||||||
@ -81,11 +83,18 @@ jobs:
|
|||||||
git tag ${{ needs.find-rc-tag.outputs.tag_name }}
|
git tag ${{ needs.find-rc-tag.outputs.tag_name }}
|
||||||
git push origin tag ${{ needs.find-rc-tag.outputs.tag_name }}
|
git push origin tag ${{ needs.find-rc-tag.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Create release tag
|
- name: Create or update release tag
|
||||||
run: |
|
run: |
|
||||||
git tag -f ${{ inputs.cura_version }}
|
git tag -f ${{ inputs.cura_version }}
|
||||||
git push -f origin tag ${{ inputs.cura_version }}
|
git push -f origin tag ${{ inputs.cura_version }}
|
||||||
|
|
||||||
|
- name: Export Cura tagged commit
|
||||||
|
id: export-main-commit
|
||||||
|
if: ${{ matrix.repository == "Cura" }}
|
||||||
|
run: |
|
||||||
|
echo "main_commit=`git rev-parse HEAD`" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
||||||
create-dependencies-packages:
|
create-dependencies-packages:
|
||||||
name: Create conan packages for dependencies
|
name: Create conan packages for dependencies
|
||||||
uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@main
|
uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@main
|
||||||
@ -136,7 +145,7 @@ jobs:
|
|||||||
create-release-draft:
|
create-release-draft:
|
||||||
name: Create the release draft
|
name: Create the release draft
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [create-installers, parse-version]
|
needs: [create-installers, parse-version, create-tags]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Cura repo
|
- name: Checkout Cura repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -149,6 +158,7 @@ jobs:
|
|||||||
- name: Create release
|
- name: Create release
|
||||||
uses: notpeelz/action-gh-create-release@v5.0.1
|
uses: notpeelz/action-gh-create-release@v5.0.1
|
||||||
with:
|
with:
|
||||||
|
target: ${{ needs.create-tags.outputs.main_commit }}
|
||||||
tag: ${{ inputs.cura_version }}
|
tag: ${{ inputs.cura_version }}
|
||||||
strategy: replace
|
strategy: replace
|
||||||
title: UltiMaker Cura ${{ inputs.cura_version }}
|
title: UltiMaker Cura ${{ inputs.cura_version }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user