From a1a4eec6e70c8ff060992d7024279179af391425 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Tue, 9 Jul 2024 14:58:43 -0600 Subject: [PATCH] Rework release workflow Signed-off-by: Taylor Smock --- .github/workflows/ant.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml index 14e54efe7..8cd4e6150 100644 --- a/.github/workflows/ant.yml +++ b/.github/workflows/ant.yml @@ -13,23 +13,25 @@ on: workflow_dispatch: jobs: - call-workflow: - strategy: - matrix: - josm-revision: ["", "r18877"] + call-workflow-latest: + uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v2 + with: + josm-revision: "" + java-version: 17 + call-workflow-min: uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v2 with: - josm-revision: ${{ matrix.josm-revision }} + josm-revision: "r18877" java-version: 17 - perform-revision-tagging: ${{ matrix.josm-revision == 'r18877' && github.repository == 'JOSM/Mapillary' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' }} + perform-revision-tagging: ${{ github.repository == 'JOSM/Mapillary' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' }} add-mapillary-keys: runs-on: ubuntu - needs: call-workflow - if: needs.call-workflow.outputs.tag + needs: call-workflow-min + if: needs.call-workflow-min.outputs.tag steps: - name: Get Mapillary jar - run: gh release download ${{ needs.call-workflow.outputs.tag }} --pattern Mapillary.jar + run: gh release download ${{ needs.call-workflow-min.outputs.tag }} --pattern Mapillary.jar - name: Add keys run: | cat < mapillary_api_keys.json @@ -41,4 +43,4 @@ jobs: EOF zip Mapillary.jar mapillary_api_keys.json - name: Upload Mapillary jar - run: gh release upload ${{ needs.call-workflow.outputs.tag }} --clobber Mapillary.jar + run: gh release upload ${{ needs.call-workflow-min.outputs.tag }} --clobber Mapillary.jar