From 8a0929cf80b61c03333d0dfc31d373677c640b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Garc=C3=ADa-Dom=C3=ADnguez?= Date: Thu, 28 Jul 2022 19:28:00 +0100 Subject: [PATCH] Revert "Revert "Limit publishing on Github Packages to new releases"" This reverts commit b64826ca4c14e67bf896fac3ff3499b02df0f132. --- .github/workflows/publish-gh-packages.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-gh-packages.yml b/.github/workflows/publish-gh-packages.yml index 285dc7c..2b3d656 100644 --- a/.github/workflows/publish-gh-packages.yml +++ b/.github/workflows/publish-gh-packages.yml @@ -1,9 +1,12 @@ name: Publish to GitHub Packages + +# As we cannot automatically run tests with GH Actions due to a dependency on MagicDraw, +# you will need to manually check that all tests pass and then create a release on Github, +# which will trigger this workflow. on: - workflow_run: - workflows: ["Java CI with Maven"] - types: ["completed"] - branches: [ "main" ] + release: + types: [created] + jobs: publish: runs-on: ubuntu-latest