Skip to content

Commit

Permalink
Rework release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed Jul 9, 2024
1 parent 3ab8956 commit a1a4eec
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > mapillary_api_keys.json
Expand All @@ -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

0 comments on commit a1a4eec

Please sign in to comment.