From 9ae3c6d4a2f56d38ee7d0267975cdac593f22314 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:45:55 +0000 Subject: [PATCH 01/64] Bump twisted from 21.2.0 to 23.8.0 Bumps [twisted](https://github.com/twisted/twisted) from 21.2.0 to 23.8.0. - [Release notes](https://github.com/twisted/twisted/releases) - [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst) - [Commits](https://github.com/twisted/twisted/compare/twisted-21.2.0...twisted-23.8.0) --- updated-dependencies: - dependency-name: twisted dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index dfa974ef7d..f14d389b27 100644 --- a/requirements.txt +++ b/requirements.txt @@ -207,9 +207,9 @@ requests==2.22.0 \ --hash=sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4 \ --hash=sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31 # twisted -Twisted==21.2.0 \ - --hash=sha256:77544a8945cf69b98d2946689bbe0c75de7d145cdf11f391dd487eae8fc95a12 \ - --hash=sha256:aab38085ea6cda5b378b519a0ec99986874921ee8881318626b0a3414bb2631e +Twisted==23.8.0 \ + --hash=sha256:3c73360add17336a622c0d811c2a2ce29866b6e59b1125fd6509b17252098a24 \ + --hash=sha256:b8bdba145de120ffb36c20e6e071cce984e89fba798611ed0704216fb7f884cd constantly==15.1.0 \ --hash=sha256:586372eb92059873e29eba4f9dec8381541b4d3834660707faf8ba59146dfc35 \ --hash=sha256:dd2fa9d6b1a51a83f0d7dd76293d734046aa176e384bf6e33b7e44880eb37c5d From a34a4420099ac343a42b49848f3016d65aafab57 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 31 May 2024 14:58:58 +0200 Subject: [PATCH 02/64] Add dedicated conandata.yml for cura_resources --- resources/conandata.yml | 1 + resources/conanfile.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 resources/conandata.yml diff --git a/resources/conandata.yml b/resources/conandata.yml new file mode 100644 index 0000000000..c2971e2769 --- /dev/null +++ b/resources/conandata.yml @@ -0,0 +1 @@ +version: "5.8.0-alpha.0" diff --git a/resources/conanfile.py b/resources/conanfile.py index b4cafc705e..fde648eeac 100644 --- a/resources/conanfile.py +++ b/resources/conanfile.py @@ -28,8 +28,6 @@ class CuraResource(ConanFile): self.version = self.conan_data["version"] def export(self): - copy(self, pattern="conandata.yml", src=os.path.join(self.recipe_folder, ".."), dst=self.export_folder, - keep_path=False) copy(self, pattern="LICENSE*", src=os.path.join(self.recipe_folder, ".."), dst=self.export_folder, keep_path=False) update_conandata(self, {"version": self.version}) From c6b66b369a0b5474066f0bf828f45a9f13c62480 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 31 May 2024 15:33:34 +0200 Subject: [PATCH 03/64] Make the installers worfklow callable --- .github/workflows/installers.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index f1bd4b2d19..5eef9e3a5d 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -30,6 +30,29 @@ on: required: true type: boolean + workflow_call: + inputs: + cura_conan_version: + default: 'cura/latest@ultimaker/testing' + required: true + type: string + conan_args: + default: '' + required: false + type: string + enterprise: + default: false + required: true + type: boolean + staging: + default: false + required: true + type: boolean + nightly: + default: false + required: true + type: boolean + schedule: # Daily at 4:15 CET (main-branch) and 5:15 CET (release-branch) - cron: '15 3 * * *' From f1c085932546fb129beab658ba4906ada0991e66 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 31 May 2024 16:39:34 +0200 Subject: [PATCH 04/64] Use workflow from branch (for testing) --- .github/workflows/windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 09f972bb1a..1fcc05ecc4 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -42,7 +42,7 @@ on: jobs: windows-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@main + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@CURA-10769_automate_release_action with: cura_conan_version: ${{ inputs.cura_conan_version }} conan_args: ${{ inputs.conan_args }} @@ -50,4 +50,4 @@ jobs: staging: ${{ inputs.staging }} architecture: ${{ inputs.architecture }} operating_system: ${{ inputs.operating_system }} - secrets: inherit \ No newline at end of file + secrets: inherit From f76deb71abcb5cee7441f9e814c159825f4a4de2 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 3 Jun 2024 12:17:25 +0200 Subject: [PATCH 05/64] Use workflows from dev branch --- .github/workflows/installers.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 5eef9e3a5d..bd932b3346 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -65,7 +65,7 @@ env: jobs: default_values: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-default-value.yml@main + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-default-value.yml@CURA-10769_automate_release_action with: cura_conan_version: ${{ inputs.cura_conan_version }} latest_release: '5.6' @@ -73,7 +73,7 @@ jobs: latest_release_tag: 'nightly' windows-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@main + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@CURA-10769_automate_release_action needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} @@ -85,7 +85,7 @@ jobs: secrets: inherit linux-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-linux.yml@main + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-linux.yml@CURA-10769_automate_release_action needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} @@ -97,7 +97,7 @@ jobs: secrets: inherit macos-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@main + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@CURA-10769_automate_release_action needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} @@ -109,7 +109,7 @@ jobs: secrets: inherit macos-arm-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@main + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@CURA-10769_automate_release_action needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} From b71662f4dd31f97a978c40119b4800e4537b804c Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:19:10 +0200 Subject: [PATCH 06/64] Add scripts for process automation --- .../release-process_feature-freeze.yml | 64 +++++++ .../release-process_release-candidate.yml | 172 ++++++++++++++++++ .github/workflows/release-process_tester.yml | 19 ++ scripts/extract_changelog.py | 34 ++++ 4 files changed, 289 insertions(+) create mode 100644 .github/workflows/release-process_feature-freeze.yml create mode 100644 .github/workflows/release-process_release-candidate.yml create mode 100644 .github/workflows/release-process_tester.yml create mode 100644 scripts/extract_changelog.py diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml new file mode 100644 index 0000000000..1c12b962e2 --- /dev/null +++ b/.github/workflows/release-process_feature-freeze.yml @@ -0,0 +1,64 @@ +name: Feature Freeze +run-name: Feature freeze Cura ${{ inputs.cura_version }} by @${{ github.actor }} + +on: + workflow_call: + inputs: + cura_version: + description: 'Cura version major and minor, e.g. 5.7' + required: true + type: string + +jobs: + parse-version: + name: Parse input version string + runs-on: ubuntu-latest + outputs: + package_version: ${{ steps.version_parser.outputs.major }}.${{ steps.version_parser.outputs.minor }}.0 + branch_name: ${{ steps.version_parser.outputs.major }}.${{ steps.version_parser.outputs.minor }} + steps: + - name: Parse version string + id: version_parser + uses: booxmedialtd/ws-action-parse-semver@v1.4.7 + with: + input_string: ${{ inputs.cura_version }} + + feature-freeze: + name: Process feature freeze + runs-on: ubuntu-latest + needs: [parse-version] + strategy: + matrix: + repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + include: + - main_branch: main + - repository: Cura + main_branch: CURA-10769_automate_release_action + - repository: fdm_materials + main_branch: master + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + repository: Ultimaker/${{ matrix.repository }} + ref: ${{ matrix.main_branch }} + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + + - name: Update conan package version + run: | + PACKAGE_VERSION=${{ needs.parse-version.outputs.package_version }} + sed -i "s/version:.*/version: \"$PACKAGE_VERSION\"/g" conandata.yml + + - name: Update resources conan package version + if: ${{ matrix.repository == Cura }} + run: | + PACKAGE_VERSION=${{ needs.parse-version.outputs.package_version }} + sed -i "s/version:.*/version: \"$PACKAGE_VERSION\"/g" resources/conandata.yml + + - name: Create branch and commit + uses: stefanzweifel/git-auto-commit-action@v5.0.1 + with: + commit_message: Set conan package version ${{ needs.parse-version.outputs.package_version }} + file_pattern: conandata.yml + branch: ${{ needs.parse-version.outputs.branch_name }} + create_branch: true diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml new file mode 100644 index 0000000000..9fc99f659b --- /dev/null +++ b/.github/workflows/release-process_release-candidate.yml @@ -0,0 +1,172 @@ +name: Prepare Release Candidate +run-name: Release Candidate for Cura ${{ inputs.cura_version }} by @${{ github.actor }} + +on: + workflow_call: + inputs: + cura_version: + description: 'Cura version number, e.g. 5.7, 5.7.2 or 5.8.0-beta.2' + required: true + type: string + +jobs: + parse-version: + name: Parse input version string + runs-on: ubuntu-latest + outputs: + version_major: ${{ steps.version_parser.outputs.major }} + version_minor: ${{ steps.version_parser.outputs.minor }} + version_patch: ${{ steps.version_parser.outputs.patch }} + branch_name: ${{ steps.version_parser.outputs.major }}.${{ steps.version_parser.outputs.minor }} + steps: + - name: Parse version string + id: version_parser + uses: booxmedialtd/ws-action-parse-semver@v1.4.7 + with: + input_string: ${{ inputs.cura_version }} + + prepare-cura-repo: + name: Update dependencies and find RC tag name + runs-on: ubuntu-latest + needs: [parse-version] + outputs: + tag_name: ${{ steps.find-available-tag-name.outputs.tag_name }} + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + ref: ${{ needs.parse-version.outputs.branch_name }} + fetch-tags: true + fetch-depth: 0 + + - name: Update Cura dependencies + run: | + PACKAGE_VERSION=${{ inputs.cura_version }} + sed -i "s/\"uranium\/.*/\"uranium\/$PACKAGE_VERSION\"/g" conandata.yml + sed -i "s/\"cura_resources\/.*/\"cura_resources\/$PACKAGE_VERSION\"/g" conandata.yml + sed -i "s/\"curaengine\/.*/\"curaengine\/$PACKAGE_VERSION\"/g" conandata.yml + sed -i "s/\"cura_binary_data\/.*/\"cura_binary_data\/$PACKAGE_VERSION\"/g" conandata.yml + sed -i "s/\"fdm_materials\/.*/\"fdm_materials\/$PACKAGE_VERSION\"/g" conandata.yml + + - name: Commit new dependencies versioning + uses: stefanzweifel/git-auto-commit-action@v5.0.1 + with: + commit_message: Set dependencies version ${{ inputs.cura_version }} + file_pattern: conandata.yml + + - name: Find available tag name + id: find-available-tag-name + run: | + VERSION=${{ inputs.cura_version }} + + RC_INDEX=0 + while + RC_INDEX=$((RC_INDEX+1)) + TAG_NAME="$VERSION-RC$RC_INDEX" + [[ $(git tag -l "$TAG_NAME") ]] + do true; done + + echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT" + + create-tags: + name: Create tags + runs-on: ubuntu-latest + needs: [parse-version, prepare-cura-repo] + strategy: + matrix: + repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + repository: Ultimaker/${{ matrix.repository }} + ref: ${{ needs.parse-version.outputs.branch_name }} + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + + - name: Create tag + run: | + git tag ${{ needs.prepare-cura-repo.outputs.tag_name }} + git push origin tag ${{ needs.prepare-cura-repo.outputs.tag_name }} + + create-dependencies-packages: + name: Create conan packages for dependencies + uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + needs: [parse-version, prepare-cura-repo] + strategy: + matrix: + repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + include: + - conan_recipe_root: "." + - repository: Cura + conan_recipe_root: "resources" + with: + repository: ${{ matrix.repository }} + ref_name: ${{ needs.parse-version.outputs.branch_name }} + version: ${{ inputs.cura_version }} + conan_release: true + conan_user_channel: ultimaker/stable + conan_internal: false + conan_latest: true + conan_recipe_root: ${{ matrix.conan_recipe_root }} + secrets: inherit + + create-cura-package: + name: Create conan package for Cura + uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + needs: [parse-version, create-dependencies-packages] + with: + repository: Cura + ref_name: ${{ needs.parse-version.outputs.branch_name }} + version: ${{ inputs.cura_version }} + conan_release: true + conan_user_channel: ultimaker/stable + conan_internal: false + conan_latest: true + secrets: inherit + + create-installers: + name: Create installers + uses: ./.github/workflows/installers.yml@CURA-10769_automate_release_action + needs: [parse-version, create-cura-package] + with: + cura_conan_version: cura/${{ inputs.cura_version }}@/ + enterprise: false + staging: false + nightly: false + secrets: inherit + + create-release-draft: + name: Create the release draft + runs-on: ubuntu-latest + needs: [create-installers, parse-version] + steps: + - name: Download artifacts + uses: actions/download-artifact@v4.1.7 + with: + path: artifacts + merge-multiple: true + + - name: Checkout Cura repo + uses: actions/checkout@v4 + with: + ref: ${{ needs.parse-version.outputs.branch_name }} + + - name: Extract changelog + run: python ./scripts/extract_changelog.py --version ${{ needs.parse-version.outputs.version_major }}.${{ needs.parse-version.outputs.version_minor }}.${{ needs.parse-version.outputs.version_patch }} --changelog ./resources/texts/change_log.txt > formatted_changelog.txt + + - name: Get commit id for release + id: get-commit-id + uses: iawia002/get-tag-or-commit-id@v1.0.1 + with: + length: 40 + + - name: Create release + uses: notpeelz/action-gh-create-release@v5.0.1 + with: + target: ${{ steps.get-commit-id.outputs.id }} + tag: ${{ inputs.cura_version }} + strategy: replace + title: UltiMaker Cura ${{ inputs.cura_version }} + draft: true + body-source: file + body: formatted_changelog.txt diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml new file mode 100644 index 0000000000..18f11f3565 --- /dev/null +++ b/.github/workflows/release-process_tester.yml @@ -0,0 +1,19 @@ +name: Test release actions +run-name: Test + +on: + push + +jobs: + test-feature-freeze: + uses: ultimaker/cura-workflows/.github/workflows/release-process_feature-freeze.yml@CURA-10769_automate_release_action + with: + cura_version: 255.124 + secrets: inherit + + test-release-candidate: + uses: ultimaker/cura-workflows/.github/workflows/release-process_release-candidate.yml@CURA-10769_automate_release_action + needs: [test-feature-freeze] + with: + cura_version: 255.124.0-beta.1 + secrets: inherit diff --git a/scripts/extract_changelog.py b/scripts/extract_changelog.py new file mode 100644 index 0000000000..0ee20f9ccc --- /dev/null +++ b/scripts/extract_changelog.py @@ -0,0 +1,34 @@ +import argparse +import re + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description = 'Extract the changelog to be inserted to the release description') + parser.add_argument('--changelog', type = str, help = 'Path to the changelog file', required = True) + parser.add_argument('--version', type = str, help = 'Cura version to be extracted', required = True) + args = parser.parse_args() + + start_token = f"[{args.version}]" + pattern_stop_log = "\[\d+(\.\d+){1,2}\]" + log_line = False + first_chapter = True + + with open(args.changelog, "r") as changelog_file: + for line in changelog_file.readlines(): + line = line.strip() + + if log_line: + if re.match(pattern_stop_log, line): + log_line = False + elif len(line) > 0: + if line.startswith('*'): + if not first_chapter: + print("") + first_chapter = False + + line = line[1:].strip() + print(f"

{line}

\n") + else: + print(line) + elif line == start_token: + log_line = True From 7e6a03caf77b8337bd778d88a296543062584b6e Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:21:42 +0200 Subject: [PATCH 07/64] Use the proper path to call workflows --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 18f11f3565..5e2d0e6d99 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -6,13 +6,13 @@ on: jobs: test-feature-freeze: - uses: ultimaker/cura-workflows/.github/workflows/release-process_feature-freeze.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/release-process_feature-freeze.yml@CURA-10769_automate_release_action with: cura_version: 255.124 secrets: inherit test-release-candidate: - uses: ultimaker/cura-workflows/.github/workflows/release-process_release-candidate.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/release-process_release-candidate.yml@CURA-10769_automate_release_action needs: [test-feature-freeze] with: cura_version: 255.124.0-beta.1 From b12520b8fdec2ef68b365e62f49bffe4e8cb23e5 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:23:38 +0200 Subject: [PATCH 08/64] Remove version for direct script call --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 5e2d0e6d99..8220d61d31 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -6,13 +6,13 @@ on: jobs: test-feature-freeze: - uses: ./.github/workflows/release-process_feature-freeze.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/release-process_feature-freeze.yml with: cura_version: 255.124 secrets: inherit test-release-candidate: - uses: ./.github/workflows/release-process_release-candidate.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: cura_version: 255.124.0-beta.1 From 3808a566004df365801706abd2d7265639eb9c31 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:24:55 +0200 Subject: [PATCH 09/64] Fix indendation --- .github/workflows/release-process_release-candidate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 9fc99f659b..3e6b520826 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -142,9 +142,9 @@ jobs: steps: - name: Download artifacts uses: actions/download-artifact@v4.1.7 - with: - path: artifacts - merge-multiple: true + with: + path: artifacts + merge-multiple: true - name: Checkout Cura repo uses: actions/checkout@v4 From 1133bc13b009e1c0df4ccd273291e34326a7f1aa Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:27:20 +0200 Subject: [PATCH 10/64] Remove version for direct script call --- .github/workflows/release-process_release-candidate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 3e6b520826..875f9b26e8 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -126,7 +126,7 @@ jobs: create-installers: name: Create installers - uses: ./.github/workflows/installers.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/installers.yml needs: [parse-version, create-cura-package] with: cura_conan_version: cura/${{ inputs.cura_version }}@/ From 05abc7fafb78fcf2a02805a79a8b9500bd963593 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:29:17 +0200 Subject: [PATCH 11/64] Use proper string syntax --- .github/workflows/release-process_feature-freeze.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index 1c12b962e2..c57ab4c23c 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -50,7 +50,7 @@ jobs: sed -i "s/version:.*/version: \"$PACKAGE_VERSION\"/g" conandata.yml - name: Update resources conan package version - if: ${{ matrix.repository == Cura }} + if: ${{ matrix.repository == 'Cura' }} run: | PACKAGE_VERSION=${{ needs.parse-version.outputs.package_version }} sed -i "s/version:.*/version: \"$PACKAGE_VERSION\"/g" resources/conandata.yml From 4a1c9de31228820956c9fa178888c4d32bb9ed3f Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 09:50:02 +0200 Subject: [PATCH 12/64] Allow entering a short version number --- .github/workflows/release-process_feature-freeze.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index c57ab4c23c..a376b6fcf5 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -21,7 +21,7 @@ jobs: id: version_parser uses: booxmedialtd/ws-action-parse-semver@v1.4.7 with: - input_string: ${{ inputs.cura_version }} + input_string: ${{ inputs.cura_version }}.0 feature-freeze: name: Process feature freeze From 30dc16e6878145f6f3fd5fc5bd75a7600ec1a092 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 11:55:57 +0200 Subject: [PATCH 13/64] Give specific token to package creation action --- .github/workflows/release-process_release-candidate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 875f9b26e8..d5e067d7de 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -108,7 +108,8 @@ jobs: conan_internal: false conan_latest: true conan_recipe_root: ${{ matrix.conan_recipe_root }} - secrets: inherit + secrets: + token: ${{ secrets.CURA_AUTORELEASE_PAT }} create-cura-package: name: Create conan package for Cura From 9a94272374d23567f49d0c53c979163bc39ac165 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 12:04:11 +0200 Subject: [PATCH 14/64] Give PAT directly into secrets --- .github/workflows/release-process_release-candidate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index d5e067d7de..14e387c862 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -109,7 +109,7 @@ jobs: conan_latest: true conan_recipe_root: ${{ matrix.conan_recipe_root }} secrets: - token: ${{ secrets.CURA_AUTORELEASE_PAT }} + CURA_CONAN_PACKAGE_RELEASE_PAT: ${{ secrets.CURA_AUTORELEASE_PAT }} create-cura-package: name: Create conan package for Cura From 94b4bbb87f1914f4f3e6541e719dcad6aee8eb52 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:02:08 +0200 Subject: [PATCH 15/64] Give access token as regular input --- .github/workflows/release-process_release-candidate.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 14e387c862..b11e305cc8 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -108,8 +108,7 @@ jobs: conan_internal: false conan_latest: true conan_recipe_root: ${{ matrix.conan_recipe_root }} - secrets: - CURA_CONAN_PACKAGE_RELEASE_PAT: ${{ secrets.CURA_AUTORELEASE_PAT }} + token: ${{ secrets.CURA_AUTORELEASE_PAT }} create-cura-package: name: Create conan package for Cura From b45cb03c081d51c3e7118e548f4fc755f233dbd1 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:25:22 +0200 Subject: [PATCH 16/64] Call package release remotely --- .../release-process_release-candidate.yml | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index b11e305cc8..41a1e78667 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -90,7 +90,7 @@ jobs: create-dependencies-packages: name: Create conan packages for dependencies - uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + uses: mathze/workflow-dispatch-action@v1.3.0 needs: [parse-version, prepare-cura-repo] strategy: matrix: @@ -100,15 +100,22 @@ jobs: - repository: Cura conan_recipe_root: "resources" with: - repository: ${{ matrix.repository }} - ref_name: ${{ needs.parse-version.outputs.branch_name }} - version: ${{ inputs.cura_version }} - conan_release: true - conan_user_channel: ultimaker/stable - conan_internal: false - conan_latest: true - conan_recipe_root: ${{ matrix.conan_recipe_root }} - token: ${{ secrets.CURA_AUTORELEASE_PAT }} + owner: Ultimaker + repo: Cura-workflows + workflow-name: conan-package-release.yml + ref: CURA-10769_automate_release_action + payload: | + { + "repository": "${{ matrix.repository }}" + "ref_name": "${{ needs.parse-version.outputs.branch_name }}" + "version": "${{ inputs.cura_version }}" + "conan_release": true + "conan_user_channel": "ultimaker/stable" + "conan_internal": false + "conan_latest": true + "conan_recipe_root": "${{ matrix.conan_recipe_root }}" + + } create-cura-package: name: Create conan package for Cura From 26c450d56c6581208eef69fd38d4e4124fe0dd0b Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:31:33 +0200 Subject: [PATCH 17/64] Set proper token, and wait --- .github/workflows/release-process_release-candidate.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 41a1e78667..6419c63e2d 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -103,7 +103,9 @@ jobs: owner: Ultimaker repo: Cura-workflows workflow-name: conan-package-release.yml + use-marker-step: true ref: CURA-10769_automate_release_action + token: ${{ secrets.CURA_AUTORELEASE_PAT }} payload: | { "repository": "${{ matrix.repository }}" From 3a18950c20e5489ee66f72b4f797f920d0660331 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:43:43 +0200 Subject: [PATCH 18/64] Fix syntax --- .../release-process_release-candidate.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 6419c63e2d..6765d49abd 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -108,15 +108,14 @@ jobs: token: ${{ secrets.CURA_AUTORELEASE_PAT }} payload: | { - "repository": "${{ matrix.repository }}" - "ref_name": "${{ needs.parse-version.outputs.branch_name }}" - "version": "${{ inputs.cura_version }}" - "conan_release": true - "conan_user_channel": "ultimaker/stable" - "conan_internal": false - "conan_latest": true + "repository": "${{ matrix.repository }}", + "ref_name": "${{ needs.parse-version.outputs.branch_name }}", + "version": "${{ inputs.cura_version }}", + "conan_release": true, + "conan_user_channel": "ultimaker/stable", + "conan_internal": false, + "conan_latest": true, "conan_recipe_root": "${{ matrix.conan_recipe_root }}" - } create-cura-package: From e94caa2e3a08fa1156f4c643ce5b2f6a6a1154a8 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:52:12 +0200 Subject: [PATCH 19/64] Call actions with absolute path --- .github/workflows/release-process_release-candidate.yml | 2 +- .github/workflows/release-process_tester.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 6765d49abd..918feb979e 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -134,7 +134,7 @@ jobs: create-installers: name: Create installers - uses: ./.github/workflows/installers.yml + uses: UltiMaker/Cura/.github/workflows/installers.yml@CURA-10769_automate_release_action needs: [parse-version, create-cura-package] with: cura_conan_version: cura/${{ inputs.cura_version }}@/ diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 8220d61d31..15f041f52a 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -6,13 +6,13 @@ on: jobs: test-feature-freeze: - uses: ./.github/workflows/release-process_feature-freeze.yml + uses: Ultimaker/Cura/.github/workflows/release-process_feature-freeze.yml@CURA-10769_automate_release_action with: cura_version: 255.124 secrets: inherit test-release-candidate: - uses: ./.github/workflows/release-process_release-candidate.yml + uses: Ultimaker/Cura/.github/workflows/release-process_release-candidate.yml@CURA-10769_automate_release_action needs: [test-feature-freeze] with: cura_version: 255.124.0-beta.1 From c398314175310efe94a8f547817de124cc0fedbc Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:55:43 +0200 Subject: [PATCH 20/64] Attempt to fix the syntax --- .github/workflows/release-process_release-candidate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 918feb979e..e2febdbaf9 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -120,7 +120,7 @@ jobs: create-cura-package: name: Create conan package for Cura - uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + uses: Ultimaker/Cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action needs: [parse-version, create-dependencies-packages] with: repository: Cura @@ -134,7 +134,7 @@ jobs: create-installers: name: Create installers - uses: UltiMaker/Cura/.github/workflows/installers.yml@CURA-10769_automate_release_action + uses: Ultimaker/Cura/.github/workflows/installers.yml@CURA-10769_automate_release_action needs: [parse-version, create-cura-package] with: cura_conan_version: cura/${{ inputs.cura_version }}@/ From 72cc8d5b579271caf4640d8cafbbf2b0a2be30c6 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:56:44 +0200 Subject: [PATCH 21/64] Remove part of possibly faulty code --- .../release-process_release-candidate.yml | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index e2febdbaf9..87e08853f3 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -88,35 +88,35 @@ jobs: git tag ${{ needs.prepare-cura-repo.outputs.tag_name }} git push origin tag ${{ needs.prepare-cura-repo.outputs.tag_name }} - create-dependencies-packages: - name: Create conan packages for dependencies - uses: mathze/workflow-dispatch-action@v1.3.0 - needs: [parse-version, prepare-cura-repo] - strategy: - matrix: - repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] - include: - - conan_recipe_root: "." - - repository: Cura - conan_recipe_root: "resources" - with: - owner: Ultimaker - repo: Cura-workflows - workflow-name: conan-package-release.yml - use-marker-step: true - ref: CURA-10769_automate_release_action - token: ${{ secrets.CURA_AUTORELEASE_PAT }} - payload: | - { - "repository": "${{ matrix.repository }}", - "ref_name": "${{ needs.parse-version.outputs.branch_name }}", - "version": "${{ inputs.cura_version }}", - "conan_release": true, - "conan_user_channel": "ultimaker/stable", - "conan_internal": false, - "conan_latest": true, - "conan_recipe_root": "${{ matrix.conan_recipe_root }}" - } + #create-dependencies-packages: + #name: Create conan packages for dependencies + #uses: mathze/workflow-dispatch-action@v1.3.0 + #needs: [parse-version, prepare-cura-repo] + #strategy: + #matrix: + #repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + #include: + #- conan_recipe_root: "." + #- repository: Cura + #conan_recipe_root: "resources" + #with: + #owner: Ultimaker + #repo: Cura-workflows + #workflow-name: conan-package-release.yml + #use-marker-step: true + #ref: CURA-10769_automate_release_action + #token: ${{ secrets.CURA_AUTORELEASE_PAT }} + #payload: | + #{ + #"repository": "${{ matrix.repository }}", + #"ref_name": "${{ needs.parse-version.outputs.branch_name }}", + #"version": "${{ inputs.cura_version }}", + #"conan_release": true, + #"conan_user_channel": "ultimaker/stable", + #"conan_internal": false, + #"conan_latest": true, + #"conan_recipe_root": "${{ matrix.conan_recipe_root }}" + #} create-cura-package: name: Create conan package for Cura From 1972ca2f6c0f86b456773206ad58eca0d823802d Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 13:57:46 +0200 Subject: [PATCH 22/64] Restore part of the call --- .github/workflows/release-process_release-candidate.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 87e08853f3..4224af0cf3 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -88,10 +88,11 @@ jobs: git tag ${{ needs.prepare-cura-repo.outputs.tag_name }} git push origin tag ${{ needs.prepare-cura-repo.outputs.tag_name }} - #create-dependencies-packages: - #name: Create conan packages for dependencies + create-dependencies-packages: + name: Create conan packages for dependencies #uses: mathze/workflow-dispatch-action@v1.3.0 - #needs: [parse-version, prepare-cura-repo] + needs: [parse-version, prepare-cura-repo] + run: echo coucou #strategy: #matrix: #repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] From 7c435a1bd5f7007731963ebd712cd91329b07be4 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:01:13 +0200 Subject: [PATCH 23/64] Call dispatch in a step --- .../release-process_release-candidate.yml | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 4224af0cf3..3d05ac6d8a 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -90,34 +90,37 @@ jobs: create-dependencies-packages: name: Create conan packages for dependencies - #uses: mathze/workflow-dispatch-action@v1.3.0 + runs-on: ubuntu-latest needs: [parse-version, prepare-cura-repo] - run: echo coucou - #strategy: - #matrix: - #repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] - #include: - #- conan_recipe_root: "." - #- repository: Cura - #conan_recipe_root: "resources" - #with: - #owner: Ultimaker - #repo: Cura-workflows - #workflow-name: conan-package-release.yml - #use-marker-step: true - #ref: CURA-10769_automate_release_action - #token: ${{ secrets.CURA_AUTORELEASE_PAT }} - #payload: | - #{ - #"repository": "${{ matrix.repository }}", - #"ref_name": "${{ needs.parse-version.outputs.branch_name }}", - #"version": "${{ inputs.cura_version }}", - #"conan_release": true, - #"conan_user_channel": "ultimaker/stable", - #"conan_internal": false, - #"conan_latest": true, - #"conan_recipe_root": "${{ matrix.conan_recipe_root }}" - #} + strategy: + matrix: + repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + include: + - conan_recipe_root: "." + - repository: Cura + conan_recipe_root: "resources" + steps: + call-create-package: + name: Call external create package + uses: mathze/workflow-dispatch-action@v1.3.0 + with: + owner: Ultimaker + repo: Cura-workflows + workflow-name: conan-package-release.yml + use-marker-step: true + ref: CURA-10769_automate_release_action + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + payload: | + { + "repository": "${{ matrix.repository }}", + "ref_name": "${{ needs.parse-version.outputs.branch_name }}", + "version": "${{ inputs.cura_version }}", + "conan_release": true, + "conan_user_channel": "ultimaker/stable", + "conan_internal": false, + "conan_latest": true, + "conan_recipe_root": "${{ matrix.conan_recipe_root }}" + } create-cura-package: name: Create conan package for Cura From 9ad5a3f93df7ac90d494819a16863426d55c9a1f Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:03:06 +0200 Subject: [PATCH 24/64] Fix step syntax --- .github/workflows/release-process_release-candidate.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 3d05ac6d8a..4d7d30f4e9 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -100,8 +100,7 @@ jobs: - repository: Cura conan_recipe_root: "resources" steps: - call-create-package: - name: Call external create package + - name: Call external create package uses: mathze/workflow-dispatch-action@v1.3.0 with: owner: Ultimaker From 4e569986d283939969015d8c031d478de5697fde Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:04:16 +0200 Subject: [PATCH 25/64] Use compact syntax to call local scripts --- .github/workflows/release-process_release-candidate.yml | 2 +- .github/workflows/release-process_tester.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 4d7d30f4e9..f144338168 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -137,7 +137,7 @@ jobs: create-installers: name: Create installers - uses: Ultimaker/Cura/.github/workflows/installers.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/installers.yml needs: [parse-version, create-cura-package] with: cura_conan_version: cura/${{ inputs.cura_version }}@/ diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 15f041f52a..8220d61d31 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -6,13 +6,13 @@ on: jobs: test-feature-freeze: - uses: Ultimaker/Cura/.github/workflows/release-process_feature-freeze.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/release-process_feature-freeze.yml with: cura_version: 255.124 secrets: inherit test-release-candidate: - uses: Ultimaker/Cura/.github/workflows/release-process_release-candidate.yml@CURA-10769_automate_release_action + uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: cura_version: 255.124.0-beta.1 From c02c3500c6d29ae81f242ec9ca0fc1b592cc7c7a Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:15:40 +0200 Subject: [PATCH 26/64] Fix changelog extraction for minor releases --- scripts/extract_changelog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/extract_changelog.py b/scripts/extract_changelog.py index 0ee20f9ccc..a1a0b251f0 100644 --- a/scripts/extract_changelog.py +++ b/scripts/extract_changelog.py @@ -8,6 +8,10 @@ if __name__ == "__main__": parser.add_argument('--version', type = str, help = 'Cura version to be extracted', required = True) args = parser.parse_args() + # In the changelog we usually omit the patch number for minor release (i.e. 5.7.0 => 5.7) + if args.version.endswith('.0'): + args.version = args.version[:-2] + start_token = f"[{args.version}]" pattern_stop_log = "\[\d+(\.\d+){1,2}\]" log_line = False From ec56098a9ee89ad49837119c30d1f82ef69171ac Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:34:13 +0200 Subject: [PATCH 27/64] Create Cura package remotely --- .../release-process_release-candidate.yml | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index f144338168..8b201cd9af 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -122,18 +122,29 @@ jobs: } create-cura-package: - name: Create conan package for Cura - uses: Ultimaker/Cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + name: Create conan packages for Cura + runs-on: ubuntu-latest needs: [parse-version, create-dependencies-packages] - with: - repository: Cura - ref_name: ${{ needs.parse-version.outputs.branch_name }} - version: ${{ inputs.cura_version }} - conan_release: true - conan_user_channel: ultimaker/stable - conan_internal: false - conan_latest: true - secrets: inherit + steps: + - name: Call external create package + uses: mathze/workflow-dispatch-action@v1.3.0 + with: + owner: Ultimaker + repo: Cura-workflows + workflow-name: conan-package-release.yml + use-marker-step: true + ref: CURA-10769_automate_release_action + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + payload: | + { + "repository": "Cura", + "ref_name": "${{ needs.parse-version.outputs.branch_name }}", + "version": "${{ inputs.cura_version }}", + "conan_release": true, + "conan_user_channel": "ultimaker/stable", + "conan_internal": false, + "conan_latest": true + } create-installers: name: Create installers From 713242782814daa3fd23cde0a31acc35e73d4f00 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:34:24 +0200 Subject: [PATCH 28/64] Skip feature freeze --- .github/workflows/release-process_tester.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 8220d61d31..09ebe920d1 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -5,15 +5,15 @@ on: push jobs: - test-feature-freeze: - uses: ./.github/workflows/release-process_feature-freeze.yml - with: - cura_version: 255.124 - secrets: inherit + #test-feature-freeze: + #uses: ./.github/workflows/release-process_feature-freeze.yml + #with: + #cura_version: 255.124 + #secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml - needs: [test-feature-freeze] + #needs: [test-feature-freeze] with: cura_version: 255.124.0-beta.1 secrets: inherit From ce30f1734949634623d4e746bc72797a3f62731a Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:43:53 +0200 Subject: [PATCH 29/64] Fine-tune workflow call settings --- .github/workflows/release-process_release-candidate.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 8b201cd9af..d66a709cb4 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -106,9 +106,10 @@ jobs: owner: Ultimaker repo: Cura-workflows workflow-name: conan-package-release.yml - use-marker-step: true ref: CURA-10769_automate_release_action token: ${{ secrets.CURA_AUTORELEASE_PAT }} + fail-on-error: true + wait-timeout: 60m payload: | { "repository": "${{ matrix.repository }}", @@ -132,9 +133,10 @@ jobs: owner: Ultimaker repo: Cura-workflows workflow-name: conan-package-release.yml - use-marker-step: true ref: CURA-10769_automate_release_action token: ${{ secrets.CURA_AUTORELEASE_PAT }} + fail-on-error: true + wait-timeout: 60m payload: | { "repository": "Cura", From f72a4a253a22f1f361f9f8e8753b9d1f3d4eb3a0 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:46:56 +0200 Subject: [PATCH 30/64] Fix Cura-binary-data package creation call syntax --- .github/workflows/release-process_release-candidate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index d66a709cb4..6db788ef0a 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -94,7 +94,7 @@ jobs: needs: [parse-version, prepare-cura-repo] strategy: matrix: - repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] + repository: [Cura, Uranium, CuraEngine, Cura-binary-data, fdm_materials] include: - conan_recipe_root: "." - repository: Cura From c4643472e674d0a12b7bc496b3616395ca6e65a0 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 14:52:21 +0200 Subject: [PATCH 31/64] Activate wait on remote action call --- .github/workflows/release-process_release-candidate.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 6db788ef0a..c0fe62cc84 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -110,6 +110,7 @@ jobs: token: ${{ secrets.CURA_AUTORELEASE_PAT }} fail-on-error: true wait-timeout: 60m + run-id: dummy-run-id payload: | { "repository": "${{ matrix.repository }}", @@ -137,6 +138,7 @@ jobs: token: ${{ secrets.CURA_AUTORELEASE_PAT }} fail-on-error: true wait-timeout: 60m + run-id: dummy-run-id payload: | { "repository": "Cura", From 2ca76f5e9cec94e47ba6bdb21362054bba09ee95 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 5 Jun 2024 16:34:11 +0200 Subject: [PATCH 32/64] Attempt to fix wrong given inputs --- .../workflows/release-process_release-candidate.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index c0fe62cc84..2f042844c8 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -116,10 +116,10 @@ jobs: "repository": "${{ matrix.repository }}", "ref_name": "${{ needs.parse-version.outputs.branch_name }}", "version": "${{ inputs.cura_version }}", - "conan_release": true, + "conan_release": "true", "conan_user_channel": "ultimaker/stable", - "conan_internal": false, - "conan_latest": true, + "conan_internal": "false", + "conan_latest": "true", "conan_recipe_root": "${{ matrix.conan_recipe_root }}" } @@ -144,10 +144,10 @@ jobs: "repository": "Cura", "ref_name": "${{ needs.parse-version.outputs.branch_name }}", "version": "${{ inputs.cura_version }}", - "conan_release": true, + "conan_release": "true", "conan_user_channel": "ultimaker/stable", - "conan_internal": false, - "conan_latest": true + "conan_internal": "false", + "conan_latest": "true" } create-installers: From d3e5dc387049cbee7e7a9081f002d2cba50d00ba Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 07:33:50 +0200 Subject: [PATCH 33/64] Add downloaded artifacts to release --- .github/workflows/release-process_release-candidate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 2f042844c8..55169a6d56 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -196,3 +196,4 @@ jobs: draft: true body-source: file body: formatted_changelog.txt + files: artifacts/UltiMaker-Cura-* From d3e10aff832cbff8437f784e5bb59b8f0cf76fc5 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 09:06:53 +0200 Subject: [PATCH 34/64] Use different action to dispatch package creation --- .../release-process_release-candidate.yml | 45 ++++++++++++------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 55169a6d56..9ac52b0b53 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -101,17 +101,15 @@ jobs: conan_recipe_root: "resources" steps: - name: Call external create package - uses: mathze/workflow-dispatch-action@v1.3.0 + id: dispatch-create-action + uses: Codex-/return-dispatch@v1.14.0 with: owner: Ultimaker repo: Cura-workflows - workflow-name: conan-package-release.yml - ref: CURA-10769_automate_release_action token: ${{ secrets.CURA_AUTORELEASE_PAT }} - fail-on-error: true - wait-timeout: 60m - run-id: dummy-run-id - payload: | + workflow: conan-package-release.yml + ref: CURA-10769_automate_release_action + workflow_inputs: | { "repository": "${{ matrix.repository }}", "ref_name": "${{ needs.parse-version.outputs.branch_name }}", @@ -123,23 +121,30 @@ jobs: "conan_recipe_root": "${{ matrix.conan_recipe_root }}" } + - name: Wait for package creation completion + uses: Codex-/await-remote-run@v1.12.2 + with: + owner: Ultimaker + repo: Cura-workflows + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + run_id: ${{ steps.dispatch-create-action.outputs.run_id }} + run_timeout_seconds: 1800 + create-cura-package: name: Create conan packages for Cura runs-on: ubuntu-latest needs: [parse-version, create-dependencies-packages] steps: - name: Call external create package - uses: mathze/workflow-dispatch-action@v1.3.0 + id: dispatch-create-action + uses: Codex-/return-dispatch@v1.14.0 with: owner: Ultimaker repo: Cura-workflows - workflow-name: conan-package-release.yml - ref: CURA-10769_automate_release_action token: ${{ secrets.CURA_AUTORELEASE_PAT }} - fail-on-error: true - wait-timeout: 60m - run-id: dummy-run-id - payload: | + workflow: conan-package-release.yml + ref: CURA-10769_automate_release_action + workflow_inputs: | { "repository": "Cura", "ref_name": "${{ needs.parse-version.outputs.branch_name }}", @@ -147,9 +152,19 @@ jobs: "conan_release": "true", "conan_user_channel": "ultimaker/stable", "conan_internal": "false", - "conan_latest": "true" + "conan_latest": "true", + "conan_recipe_root": "${{ matrix.conan_recipe_root }}" } + - name: Wait for package creation completion + uses: Codex-/await-remote-run@v1.12.2 + with: + owner: Ultimaker + repo: Cura-workflows + token: ${{ secrets.CURA_AUTORELEASE_PAT }} + run_id: ${{ steps.dispatch-create-action.outputs.run_id }} + run_timeout_seconds: 3600 + create-installers: name: Create installers uses: ./.github/workflows/installers.yml From f351dd2aba9e0b6f8f21dc6c887de8232ed20bdc Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 09:22:04 +0200 Subject: [PATCH 35/64] Call create package workflow directly --- .../release-process_release-candidate.yml | 87 +++++-------------- 1 file changed, 23 insertions(+), 64 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 9ac52b0b53..0a8bc23415 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -90,80 +90,39 @@ jobs: create-dependencies-packages: name: Create conan packages for dependencies - runs-on: ubuntu-latest + uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action needs: [parse-version, prepare-cura-repo] strategy: matrix: - repository: [Cura, Uranium, CuraEngine, Cura-binary-data, fdm_materials] + repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] include: - conan_recipe_root: "." - repository: Cura conan_recipe_root: "resources" - steps: - - name: Call external create package - id: dispatch-create-action - uses: Codex-/return-dispatch@v1.14.0 - with: - owner: Ultimaker - repo: Cura-workflows - token: ${{ secrets.CURA_AUTORELEASE_PAT }} - workflow: conan-package-release.yml - ref: CURA-10769_automate_release_action - workflow_inputs: | - { - "repository": "${{ matrix.repository }}", - "ref_name": "${{ needs.parse-version.outputs.branch_name }}", - "version": "${{ inputs.cura_version }}", - "conan_release": "true", - "conan_user_channel": "ultimaker/stable", - "conan_internal": "false", - "conan_latest": "true", - "conan_recipe_root": "${{ matrix.conan_recipe_root }}" - } - - - name: Wait for package creation completion - uses: Codex-/await-remote-run@v1.12.2 - with: - owner: Ultimaker - repo: Cura-workflows - token: ${{ secrets.CURA_AUTORELEASE_PAT }} - run_id: ${{ steps.dispatch-create-action.outputs.run_id }} - run_timeout_seconds: 1800 + with: + repository: ${{ matrix.repository }} + ref_name: ${{ needs.parse-version.outputs.branch_name }} + version: ${{ inputs.cura_version }} + conan_release: true + conan_user_channel: ultimaker/stable + conan_internal: false + conan_latest: true + conan_recipe_root: ${{ matrix.conan_recipe_root }} + token: ${{ secrets.CURA_AUTORELEASE_PAT }} create-cura-package: - name: Create conan packages for Cura - runs-on: ubuntu-latest + name: Create conan package for Cura + uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action needs: [parse-version, create-dependencies-packages] - steps: - - name: Call external create package - id: dispatch-create-action - uses: Codex-/return-dispatch@v1.14.0 - with: - owner: Ultimaker - repo: Cura-workflows - token: ${{ secrets.CURA_AUTORELEASE_PAT }} - workflow: conan-package-release.yml - ref: CURA-10769_automate_release_action - workflow_inputs: | - { - "repository": "Cura", - "ref_name": "${{ needs.parse-version.outputs.branch_name }}", - "version": "${{ inputs.cura_version }}", - "conan_release": "true", - "conan_user_channel": "ultimaker/stable", - "conan_internal": "false", - "conan_latest": "true", - "conan_recipe_root": "${{ matrix.conan_recipe_root }}" - } - - - name: Wait for package creation completion - uses: Codex-/await-remote-run@v1.12.2 - with: - owner: Ultimaker - repo: Cura-workflows - token: ${{ secrets.CURA_AUTORELEASE_PAT }} - run_id: ${{ steps.dispatch-create-action.outputs.run_id }} - run_timeout_seconds: 3600 + with: + repository: Cura + ref_name: ${{ needs.parse-version.outputs.branch_name }} + version: ${{ inputs.cura_version }} + conan_release: true + conan_user_channel: ultimaker/stable + conan_internal: false + conan_latest: true + secrets: inherit create-installers: name: Create installers From 2fce3a8173525c0a1a7a035debf911780b9a0ef4 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 09:31:58 +0200 Subject: [PATCH 36/64] Add secrets to action --- .github/workflows/release-process_release-candidate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 0a8bc23415..6237ce9e8f 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -109,6 +109,7 @@ jobs: conan_latest: true conan_recipe_root: ${{ matrix.conan_recipe_root }} token: ${{ secrets.CURA_AUTORELEASE_PAT }} + secrets: inherit create-cura-package: name: Create conan package for Cura From d8ebe0cfe22969ef9f057a2ee15a66f4e6b0e099 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 09:54:17 +0200 Subject: [PATCH 37/64] Remove inexisting token input --- .github/workflows/release-process_release-candidate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 6237ce9e8f..ee52703bfb 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -108,7 +108,6 @@ jobs: conan_internal: false conan_latest: true conan_recipe_root: ${{ matrix.conan_recipe_root }} - token: ${{ secrets.CURA_AUTORELEASE_PAT }} secrets: inherit create-cura-package: From 9a969299c2cddb76a23a4f29d466304ac4c793a1 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:03:02 +0200 Subject: [PATCH 38/64] Set exhaustive list of artifacts This makes sure the step will fail if some files are missing --- .../workflows/release-process_release-candidate.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index ee52703bfb..1aaad486de 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -5,7 +5,7 @@ on: workflow_call: inputs: cura_version: - description: 'Cura version number, e.g. 5.7, 5.7.2 or 5.8.0-beta.2' + description: 'Cura version number, e.g. 5.7.0, 5.7.2 or 5.8.0-beta.2' required: true type: string @@ -170,4 +170,12 @@ jobs: draft: true body-source: file body: formatted_changelog.txt - files: artifacts/UltiMaker-Cura-* + files: | + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe + artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi From 3568538d2d5f37b25c2cf98d96700afea1426f07 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:08:11 +0200 Subject: [PATCH 39/64] Make sure all changed files are committed --- .github/workflows/release-process_feature-freeze.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index a376b6fcf5..e812369604 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -59,6 +59,5 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5.0.1 with: commit_message: Set conan package version ${{ needs.parse-version.outputs.package_version }} - file_pattern: conandata.yml branch: ${{ needs.parse-version.outputs.branch_name }} create_branch: true From 8a23981b893ee46ceaa888e817677672c86bf173 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:43:17 +0200 Subject: [PATCH 40/64] Use reusable action to freeze packages versions --- .../release-process_feature-freeze.yml | 42 +++---------------- .../release-process_release-candidate.yml | 37 +++++++--------- 2 files changed, 20 insertions(+), 59 deletions(-) diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index e812369604..523a9a694f 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -14,8 +14,7 @@ jobs: name: Parse input version string runs-on: ubuntu-latest outputs: - package_version: ${{ steps.version_parser.outputs.major }}.${{ steps.version_parser.outputs.minor }}.0 - branch_name: ${{ steps.version_parser.outputs.major }}.${{ steps.version_parser.outputs.minor }} + package_version: ${{ steps.version_parser.outputs.major }}.${{ steps.version_parser.outputs.minor }}.0-alpha.1 steps: - name: Parse version string id: version_parser @@ -25,39 +24,8 @@ jobs: feature-freeze: name: Process feature freeze - runs-on: ubuntu-latest + uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml needs: [parse-version] - strategy: - matrix: - repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] - include: - - main_branch: main - - repository: Cura - main_branch: CURA-10769_automate_release_action - - repository: fdm_materials - main_branch: master - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - repository: Ultimaker/${{ matrix.repository }} - ref: ${{ matrix.main_branch }} - token: ${{ secrets.CURA_AUTORELEASE_PAT }} - - - name: Update conan package version - run: | - PACKAGE_VERSION=${{ needs.parse-version.outputs.package_version }} - sed -i "s/version:.*/version: \"$PACKAGE_VERSION\"/g" conandata.yml - - - name: Update resources conan package version - if: ${{ matrix.repository == 'Cura' }} - run: | - PACKAGE_VERSION=${{ needs.parse-version.outputs.package_version }} - sed -i "s/version:.*/version: \"$PACKAGE_VERSION\"/g" resources/conandata.yml - - - name: Create branch and commit - uses: stefanzweifel/git-auto-commit-action@v5.0.1 - with: - commit_message: Set conan package version ${{ needs.parse-version.outputs.package_version }} - branch: ${{ needs.parse-version.outputs.branch_name }} - create_branch: true + with: + cura_version: ${{ needs.parse-version.outputs.package_version }} + create_feature_branch: true diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 1aaad486de..0249077f2b 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -25,10 +25,18 @@ jobs: with: input_string: ${{ inputs.cura_version }} - prepare-cura-repo: - name: Update dependencies and find RC tag name - runs-on: ubuntu-latest + freeze-packages-versions: + name: Freeze packges versions + uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml needs: [parse-version] + with: + cura_version: ${{ inputs.cura_version }} + create_feature_branch: false + + find-rc-tag: + name: Find RC tag name + runs-on: ubuntu-latest + needs: [freeze-packages-versions] outputs: tag_name: ${{ steps.find-available-tag-name.outputs.tag_name }} steps: @@ -39,21 +47,6 @@ jobs: fetch-tags: true fetch-depth: 0 - - name: Update Cura dependencies - run: | - PACKAGE_VERSION=${{ inputs.cura_version }} - sed -i "s/\"uranium\/.*/\"uranium\/$PACKAGE_VERSION\"/g" conandata.yml - sed -i "s/\"cura_resources\/.*/\"cura_resources\/$PACKAGE_VERSION\"/g" conandata.yml - sed -i "s/\"curaengine\/.*/\"curaengine\/$PACKAGE_VERSION\"/g" conandata.yml - sed -i "s/\"cura_binary_data\/.*/\"cura_binary_data\/$PACKAGE_VERSION\"/g" conandata.yml - sed -i "s/\"fdm_materials\/.*/\"fdm_materials\/$PACKAGE_VERSION\"/g" conandata.yml - - - name: Commit new dependencies versioning - uses: stefanzweifel/git-auto-commit-action@v5.0.1 - with: - commit_message: Set dependencies version ${{ inputs.cura_version }} - file_pattern: conandata.yml - - name: Find available tag name id: find-available-tag-name run: | @@ -71,7 +64,7 @@ jobs: create-tags: name: Create tags runs-on: ubuntu-latest - needs: [parse-version, prepare-cura-repo] + needs: [parse-version, find-rc-tag] strategy: matrix: repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] @@ -85,13 +78,13 @@ jobs: - name: Create tag run: | - git tag ${{ needs.prepare-cura-repo.outputs.tag_name }} - git push origin tag ${{ needs.prepare-cura-repo.outputs.tag_name }} + git tag ${{ needs.find-rc-tag.outputs.tag_name }} + git push origin tag ${{ needs.find-rc-tag.outputs.tag_name }} create-dependencies-packages: name: Create conan packages for dependencies uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action - needs: [parse-version, prepare-cura-repo] + needs: [parse-version, freeze-packages-versions] strategy: matrix: repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials] From ef2fb67222cab8b1f72900fa4248b5f7c9db4cf9 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:51:44 +0200 Subject: [PATCH 41/64] Set new version for testing --- .github/workflows/release-process_tester.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 09ebe920d1..8cb35b9b8d 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -5,15 +5,15 @@ on: push jobs: - #test-feature-freeze: - #uses: ./.github/workflows/release-process_feature-freeze.yml - #with: - #cura_version: 255.124 - #secrets: inherit + test-feature-freeze: + uses: ./.github/workflows/release-process_feature-freeze.yml + with: + cura_version: 255.125 + secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml - #needs: [test-feature-freeze] + needs: [test-feature-freeze] with: - cura_version: 255.124.0-beta.1 + cura_version: 255.125.0-beta.1 secrets: inherit From 565ccd3eba08671383791be07317e1549ca6d8a7 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:53:09 +0200 Subject: [PATCH 42/64] Set called script version --- .github/workflows/release-process_feature-freeze.yml | 2 +- .github/workflows/release-process_release-candidate.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index 523a9a694f..bdcccad117 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -24,7 +24,7 @@ jobs: feature-freeze: name: Process feature freeze - uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml + uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@CURA-10769_automate_release_action needs: [parse-version] with: cura_version: ${{ needs.parse-version.outputs.package_version }} diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 0249077f2b..95da8dc2a4 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -27,7 +27,7 @@ jobs: freeze-packages-versions: name: Freeze packges versions - uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml + uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@CURA-10769_automate_release_action needs: [parse-version] with: cura_version: ${{ inputs.cura_version }} From ec4455a73eb3ec57091b900bfab5ee2496b783e7 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:56:37 +0200 Subject: [PATCH 43/64] Change version to trigger build --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 8cb35b9b8d..be4753ea21 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -8,12 +8,12 @@ jobs: test-feature-freeze: uses: ./.github/workflows/release-process_feature-freeze.yml with: - cura_version: 255.125 + cura_version: 255.126 secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: - cura_version: 255.125.0-beta.1 + cura_version: 255.126.0-beta.1 secrets: inherit From 8c97cd3d9c90af083965b3855ffd250372bca974 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 10:58:03 +0200 Subject: [PATCH 44/64] Change version to trigger build --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index be4753ea21..c9f185f242 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -8,12 +8,12 @@ jobs: test-feature-freeze: uses: ./.github/workflows/release-process_feature-freeze.yml with: - cura_version: 255.126 + cura_version: 255.127 secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: - cura_version: 255.126.0-beta.1 + cura_version: 255.127.0-beta.1 secrets: inherit From 2452a748de084ed88778075a803680680ddede5e Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 11:03:00 +0200 Subject: [PATCH 45/64] Give secrets to called scripts --- .github/workflows/release-process_feature-freeze.yml | 1 + .github/workflows/release-process_release-candidate.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index bdcccad117..b2b228603e 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -29,3 +29,4 @@ jobs: with: cura_version: ${{ needs.parse-version.outputs.package_version }} create_feature_branch: true + secrets: inherit diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 95da8dc2a4..1e2475fa1e 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -32,6 +32,7 @@ jobs: with: cura_version: ${{ inputs.cura_version }} create_feature_branch: false + secrets: inherit find-rc-tag: name: Find RC tag name From 63889fa18cb9e55944bb666402c82c96a61adeb4 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 12:39:01 +0200 Subject: [PATCH 46/64] Change version to trigger build --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index c9f185f242..74a5ae7266 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -8,12 +8,12 @@ jobs: test-feature-freeze: uses: ./.github/workflows/release-process_feature-freeze.yml with: - cura_version: 255.127 + cura_version: 255.128 secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: - cura_version: 255.127.0-beta.1 + cura_version: 255.128.0-beta.1 secrets: inherit From f17b53765865f17f9ecc0caf71d8ce5f13db9d63 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 12:45:15 +0200 Subject: [PATCH 47/64] Change version to trigger build --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 74a5ae7266..54b73639b9 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -8,12 +8,12 @@ jobs: test-feature-freeze: uses: ./.github/workflows/release-process_feature-freeze.yml with: - cura_version: 255.128 + cura_version: 255.129 secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: - cura_version: 255.128.0-beta.1 + cura_version: 255.129.0-beta.1 secrets: inherit From f994ffabd5c42dbf62ed95a4bcfa3dfb29971f44 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 12:54:07 +0200 Subject: [PATCH 48/64] Change version to trigger build --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 54b73639b9..55b0ddca4d 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -8,12 +8,12 @@ jobs: test-feature-freeze: uses: ./.github/workflows/release-process_feature-freeze.yml with: - cura_version: 255.129 + cura_version: 255.130 secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: - cura_version: 255.129.0-beta.1 + cura_version: 255.130.0-beta.1 secrets: inherit From a2a67947e81730146b38c4cdfaa83a2ef1648dcd Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 12:55:52 +0200 Subject: [PATCH 49/64] Change version to trigger build --- .github/workflows/release-process_tester.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 55b0ddca4d..4ee4ee465e 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -8,12 +8,12 @@ jobs: test-feature-freeze: uses: ./.github/workflows/release-process_feature-freeze.yml with: - cura_version: 255.130 + cura_version: 255.131 secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml needs: [test-feature-freeze] with: - cura_version: 255.130.0-beta.1 + cura_version: 255.131.0-beta.1 secrets: inherit From 1e0ffd05460ee731e233a5bb2bff234c252d6fec Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 15:33:18 +0200 Subject: [PATCH 50/64] Unzip artifacts before sending them --- .github/workflows/release-process_release-candidate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 1e2475fa1e..2b26a8ae81 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -140,6 +140,10 @@ jobs: path: artifacts merge-multiple: true + - name: Unzip artifacts + working-directory: artifacts + run: ls *.zip | xargs -n 1 unzip + - name: Checkout Cura repo uses: actions/checkout@v4 with: From 3ea22f0f0c791c0547463ce5b0f5ba276cd2ce8c Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 6 Jun 2024 15:33:35 +0200 Subject: [PATCH 51/64] Disable feature freeze --- .github/workflows/release-process_tester.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml index 4ee4ee465e..3cafbe0901 100644 --- a/.github/workflows/release-process_tester.yml +++ b/.github/workflows/release-process_tester.yml @@ -5,15 +5,15 @@ on: push jobs: - test-feature-freeze: - uses: ./.github/workflows/release-process_feature-freeze.yml - with: - cura_version: 255.131 - secrets: inherit + #test-feature-freeze: + #uses: ./.github/workflows/release-process_feature-freeze.yml + #with: + #cura_version: 255.131 + #secrets: inherit test-release-candidate: uses: ./.github/workflows/release-process_release-candidate.yml - needs: [test-feature-freeze] + #needs: [test-feature-freeze] with: cura_version: 255.131.0-beta.1 secrets: inherit From e8219726e7ea2669b39ab32b9104cb237de213db Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 08:55:57 +0200 Subject: [PATCH 52/64] Upload all artifacts (test) --- .../release-process_release-candidate.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 2b26a8ae81..2cf79e655f 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -140,10 +140,6 @@ jobs: path: artifacts merge-multiple: true - - name: Unzip artifacts - working-directory: artifacts - run: ls *.zip | xargs -n 1 unzip - - name: Checkout Cura repo uses: actions/checkout@v4 with: @@ -168,12 +164,4 @@ jobs: draft: true body-source: file body: formatted_changelog.txt - files: | - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe - artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi + files: artifacts/* From c151dfa06c4360b6041de30115b18c886489d438 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 11:52:49 +0200 Subject: [PATCH 53/64] Upload release artifacts manually The action we use to create the release draft doesn't seem to upload artifacts correctly and doesn't report any error when files are missing, thus we do it manually. --- .../workflows/release-process_release-candidate.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 2cf79e655f..890e190e72 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -164,4 +164,14 @@ jobs: draft: true body-source: file body: formatted_changelog.txt - files: artifacts/* + + - name: Upload artifacts + run: | + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe --clobber + gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi --clobber From 2f16b47522d46083d16e68392a65671409b3feb1 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 13:16:41 +0200 Subject: [PATCH 54/64] Set GitHub token to upload artifact --- .github/workflows/release-process_release-candidate.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 890e190e72..540e3fe500 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -175,3 +175,5 @@ jobs: gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg --clobber gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe --clobber gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7fbe8e91ea381ad834afdd32cb9908e75d6e2a36 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 14:54:26 +0200 Subject: [PATCH 55/64] Rename installers before sending to release --- .../release-process_release-candidate.yml | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 540e3fe500..098481f28c 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -140,6 +140,17 @@ jobs: path: artifacts merge-multiple: true + - name: Rename artifacts + working-directory: artifacts + mv UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64-AppImage UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage + mv UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64-asc UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc + mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64-dmg UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg + mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64-pkg UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg + mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64-dmg UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg + mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64-pkg UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg + mv UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64-msi UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi + mv UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64-exe UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe + - name: Checkout Cura repo uses: actions/checkout@v4 with: @@ -164,16 +175,12 @@ jobs: draft: true body-source: file body: formatted_changelog.txt - - - name: Upload artifacts - run: | - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe --clobber - gh release upload ${{ inputs.cura_version }} artifacts/UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi --clobber - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + files: | + UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage + UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc + UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg + UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg + UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg + UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg + UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi + UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe From 438dd91471dfd0a1461f8efb7e056d2d3ce95cd9 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 14:55:01 +0200 Subject: [PATCH 56/64] fix syntax --- .github/workflows/release-process_release-candidate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 098481f28c..92f35b6429 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -142,6 +142,7 @@ jobs: - name: Rename artifacts working-directory: artifacts + run: | mv UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64-AppImage UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage mv UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64-asc UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64-dmg UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg From 457d86cbe69c2c1f5381b077dd146a0d48def19b Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 17:15:43 +0200 Subject: [PATCH 57/64] Don't rename artifacts --- .../release-process_release-candidate.yml | 35 ++++++++----------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 92f35b6429..8627c3988f 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -140,18 +140,6 @@ jobs: path: artifacts merge-multiple: true - - name: Rename artifacts - working-directory: artifacts - run: | - mv UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64-AppImage UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage - mv UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64-asc UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc - mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64-dmg UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg - mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64-pkg UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg - mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64-dmg UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg - mv UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64-pkg UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg - mv UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64-msi UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi - mv UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64-exe UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe - - name: Checkout Cura repo uses: actions/checkout@v4 with: @@ -176,12 +164,17 @@ jobs: draft: true body-source: file body: formatted_changelog.txt - files: | - UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage - UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc - UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg - UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg - UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg - UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg - UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi - UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe + + - name: Upload artifacts + working-directory: artifacts + run: | + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-linux-X64.AppImage.asc --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.dmg --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-macos-ARM64.pkg --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.dmg --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-macos-X64.pkg --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.exe --clobber + gh release upload ${{ inputs.cura_version }} UltiMaker-Cura-${{ inputs.cura_version }}-win64-X64.msi --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 9370f15f96d8ddf104a48c8ad960577a13158618 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 17:18:26 +0200 Subject: [PATCH 58/64] Display contents of directories --- .../release-process_release-candidate.yml | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 8627c3988f..48e8c730e8 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -134,12 +134,6 @@ jobs: runs-on: ubuntu-latest needs: [create-installers, parse-version] steps: - - name: Download artifacts - uses: actions/download-artifact@v4.1.7 - with: - path: artifacts - merge-multiple: true - - name: Checkout Cura repo uses: actions/checkout@v4 with: @@ -165,6 +159,21 @@ jobs: body-source: file body: formatted_changelog.txt + - name: Download artifacts + uses: actions/download-artifact@v4.1.7 + with: + path: artifacts + merge-multiple: true + + - name: Display contents + run: | + ls -lh + + - name: Display artifacts contents + working-directory: artifacts + run: | + ls -lh + - name: Upload artifacts working-directory: artifacts run: | From 91b25a3743d74622f7db09cd4e1fded342bdefc6 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 7 Jun 2024 17:18:50 +0200 Subject: [PATCH 59/64] Use action download-artifact@v4 --- .github/workflows/installers.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index bd932b3346..ed9b109a58 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -132,7 +132,7 @@ jobs: fetch-depth: 1 - name: Download the run info - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: linux-run-info @@ -174,13 +174,13 @@ jobs: f.writelines(f"NIGHTLY_TIME={nightly_creation_time}\n") - name: Download linux installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.LINUX }}-AppImage path: installers - name: Download linux installer jobs asc artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.LINUX }}-asc path: installers @@ -198,13 +198,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Download win msi installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.WIN_MSI }}-msi path: installers - name: Download win exe installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.WIN_EXE }}-exe path: installers @@ -222,13 +222,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Download MacOS (X64) dmg installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.MAC_X64_DMG }}-dmg path: installers - name: Download MacOS (X64) pkg installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.MAC_X64_PKG }}-pkg path: installers @@ -246,13 +246,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Download MacOS (ARM-64) dmg installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.MAC_ARM_DMG }}-dmg path: installers - name: Download MacOS (ARM-64) pkg installer jobs artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: ${{ steps.filename.outputs.MAC_ARM_PKG }}-pkg path: installers From c55a541107e3c7b40b38511c3a5edeff668a2997 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Jun 2024 08:32:00 +0200 Subject: [PATCH 60/64] Remove debug print --- .github/workflows/release-process_release-candidate.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index 48e8c730e8..e43907f3f1 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -165,15 +165,6 @@ jobs: path: artifacts merge-multiple: true - - name: Display contents - run: | - ls -lh - - - name: Display artifacts contents - working-directory: artifacts - run: | - ls -lh - - name: Upload artifacts working-directory: artifacts run: | From d30e6b9eb0e6ca6c2f3fe5c3279f2ec98e9896ab Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Jun 2024 08:42:53 +0200 Subject: [PATCH 61/64] Use scripts from main branch (PR prep) --- .../release-process_feature-freeze.yml | 4 ++-- .../release-process_release-candidate.yml | 8 ++++---- .github/workflows/release-process_tester.yml | 19 ------------------- 3 files changed, 6 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/release-process_tester.yml diff --git a/.github/workflows/release-process_feature-freeze.yml b/.github/workflows/release-process_feature-freeze.yml index b2b228603e..3a07799665 100644 --- a/.github/workflows/release-process_feature-freeze.yml +++ b/.github/workflows/release-process_feature-freeze.yml @@ -2,7 +2,7 @@ name: Feature Freeze run-name: Feature freeze Cura ${{ inputs.cura_version }} by @${{ github.actor }} on: - workflow_call: + workflow_dispatch: inputs: cura_version: description: 'Cura version major and minor, e.g. 5.7' @@ -24,7 +24,7 @@ jobs: feature-freeze: name: Process feature freeze - uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@CURA-10769_automate_release_action + uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@main needs: [parse-version] with: cura_version: ${{ needs.parse-version.outputs.package_version }} diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index e43907f3f1..fb62c5d9c5 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -2,7 +2,7 @@ name: Prepare Release Candidate run-name: Release Candidate for Cura ${{ inputs.cura_version }} by @${{ github.actor }} on: - workflow_call: + workflow_dispatch: inputs: cura_version: description: 'Cura version number, e.g. 5.7.0, 5.7.2 or 5.8.0-beta.2' @@ -27,7 +27,7 @@ jobs: freeze-packages-versions: name: Freeze packges versions - uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@CURA-10769_automate_release_action + uses: Ultimaker/Cura-workflows/.github/workflows/cura-set-packages-versions.yml@main needs: [parse-version] with: cura_version: ${{ inputs.cura_version }} @@ -84,7 +84,7 @@ jobs: create-dependencies-packages: name: Create conan packages for dependencies - uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@main needs: [parse-version, freeze-packages-versions] strategy: matrix: @@ -106,7 +106,7 @@ jobs: create-cura-package: name: Create conan package for Cura - uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/conan-package-release.yml@main needs: [parse-version, create-dependencies-packages] with: repository: Cura diff --git a/.github/workflows/release-process_tester.yml b/.github/workflows/release-process_tester.yml deleted file mode 100644 index 3cafbe0901..0000000000 --- a/.github/workflows/release-process_tester.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Test release actions -run-name: Test - -on: - push - -jobs: - #test-feature-freeze: - #uses: ./.github/workflows/release-process_feature-freeze.yml - #with: - #cura_version: 255.131 - #secrets: inherit - - test-release-candidate: - uses: ./.github/workflows/release-process_release-candidate.yml - #needs: [test-feature-freeze] - with: - cura_version: 255.131.0-beta.1 - secrets: inherit From 1f12f776b065af3fff6088176591e37aec96bca1 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Jun 2024 09:04:01 +0200 Subject: [PATCH 62/64] Use scripts from main branch (PR prep) --- .github/workflows/installers.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index ed9b109a58..0c2873cf31 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -65,7 +65,7 @@ env: jobs: default_values: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-default-value.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-default-value.yml@main with: cura_conan_version: ${{ inputs.cura_conan_version }} latest_release: '5.6' @@ -73,7 +73,7 @@ jobs: latest_release_tag: 'nightly' windows-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@main needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} @@ -85,7 +85,7 @@ jobs: secrets: inherit linux-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-linux.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-linux.yml@main needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} @@ -97,7 +97,7 @@ jobs: secrets: inherit macos-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@main needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} @@ -109,7 +109,7 @@ jobs: secrets: inherit macos-arm-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-macos.yml@main needs: [ default_values ] with: cura_conan_version: ${{ needs.default_values.outputs.cura_conan_version }} From 3d1faf3581216fa5d2f6036d1e9c34f079684347 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Jun 2024 09:13:31 +0200 Subject: [PATCH 63/64] Remove useless branch checkout --- .github/workflows/release-process_release-candidate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-process_release-candidate.yml b/.github/workflows/release-process_release-candidate.yml index fb62c5d9c5..3d59817996 100644 --- a/.github/workflows/release-process_release-candidate.yml +++ b/.github/workflows/release-process_release-candidate.yml @@ -44,7 +44,6 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 with: - ref: ${{ needs.parse-version.outputs.branch_name }} fetch-tags: true fetch-depth: 0 From dcea73efe687c124b5cc799968abb5bf72e65a4c Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Jun 2024 09:18:54 +0200 Subject: [PATCH 64/64] Use scripts from main branch (PR prep) --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1fcc05ecc4..704aa4ddde 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -42,7 +42,7 @@ on: jobs: windows-installer: - uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@CURA-10769_automate_release_action + uses: ultimaker/cura-workflows/.github/workflows/cura-installer-windows.yml@main with: cura_conan_version: ${{ inputs.cura_conan_version }} conan_args: ${{ inputs.conan_args }}