From 3b625c1a92fc81ad5ea5ef810b6f1d159eab0d2b Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Tue, 9 Jul 2024 12:05:58 -0600 Subject: [PATCH] Try using manually adding keys to jar Signed-off-by: Taylor Smock --- .github/workflows/ant-release.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ant-release.yml b/.github/workflows/ant-release.yml index eb7adb691..51293d810 100644 --- a/.github/workflows/ant-release.yml +++ b/.github/workflows/ant-release.yml @@ -10,5 +10,21 @@ jobs: with: josm-revision: "r18877" java-version: 17 - additional_build_args: "-DMAPILLARY_CLIENT_ID=${{ secrets.MAPILLARY_CLIENT_ID }} -DMAPILLARY_CLIENT_SECRET=${{ secrets.MAPILLARY_CLIENT_SECRET }} -DMAPILLARY_CLIENT_TOKEN=${{ secrets.MAPILLARY_CLIENT_TOKEN }}" - + add-mapillary-keys: + runs-on: ubuntu + needs: call-workflow + steps: + - name: Get Mapillary jar + run: gh release download ${GITHUB_REF##*/} --pattern Mapillary.jar + - name: Add keys + run: | + cat < mapillary_api_keys.json + { + "MAPILLARY_CLIENT_ID": "${real_MAPILLARY_CLIENT_ID}", + "MAPILLARY_CLIENT_TOKEN": "${real_MAPILLARY_CLIENT_TOKEN}", + "MAPILLARY_CLIENT_SECRET": "${real_MAPILLARY_CLIENT_SECRET}" + } + EOF + zip Mapillary.jar mapillary_api_keys.json + - name: Upload Mapillary jar + run: gh release upload ${GITHUB_REF##*/} --clobber Mapillary.jar