Changeset 18138 in josm for trunk/.github


Ignore:
Timestamp:
2021-08-20T17:24:54+02:00 (3 years ago)
Author:
Don-vip
Message:

see #17083 - fix Windows installer package generation

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1717validator-*
        1818.josm-local
         19app
  • trunk/.github/workflows/ant.yml

    r18136 r18138  
    44  # ANT_HOME is also our ant version
    55  ANT_HOME: 'apache-ant-1.10.11'
     6  WIX_HOME: 'wix3'
     7  WIX_URL: 'https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip'
    68on:
    79  push:
     
    5658        with:
    5759          tag_name: ${{ env.josm_release_tag }}
    58           release_name: JOSM.app release ${{ env.josm_release_tag }}
     60          release_name: JOSM release ${{ env.josm_release_tag }}
    5961          body: |
    60             JOSM.app release ${{ env.josm_release_tag }}
     62            JOSM release ${{ env.josm_release_tag }}
    6163          draft: false
    6264          prerelease: ${{ env.josm_prerelease }}
     
    152154        if: ${{ runner.os == 'windows' && always() }}
    153155        run: |
     156          if [ ! -f tools/${{ env.WIX_HOME }}-binaries.zip ]; then
     157            curl -o tools/${{ env.WIX_HOME }}-binaries.zip ${{ env.WIX_URL }}
     158          fi
     159          Expand-Archive -Path tools/${{ env.WIX_HOME }}-binaries.zip -DestinationPath ${{ env.WIX_HOME }}
     160          echo "${{ env.WIX_HOME }}" >> $GITHUB_PATH
    154161          ./native/windows/win-jpackage.sh ${{ needs.createrelease.outputs.josm_revision }}
    155162
    156       - name: Upload native app
    157         if: ${{ ( runner.os == 'macos' || runner.os == 'windows' ) && always() }}
     163      - name: Upload macOS app
     164        if: ${{ runner.os == 'macos' && always() }}
    158165        id: upload-app
    159166        uses: actions/upload-release-asset@v1
     
    165172          asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}.zip
    166173          asset_content_type: application/zip
     174
     175      - name: Upload Windows Installer package
     176        if: ${{ runner.os == 'windows' && always() }}
     177        id: upload-msi
     178        uses: actions/upload-release-asset@v1
     179        env:
     180          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     181        with:
     182          upload_url: ${{ needs.createrelease.outputs.upload_url }} # This pulls from the CREATE RELEASE job above, referencing its ID to get its outputs object, which include a `upload_url`.
     183          asset_path: app/JOSM.msi
     184          asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}.msi
     185          asset_content_type: application/x-ole-storage
Note: See TracChangeset for help on using the changeset viewer.