update zsync info in appimage to use latest instead of latest-all…
#105
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rebased | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| type: string | |
| description: 'build number' | |
| required: true | |
| jobs: | |
| get_version: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.get_version.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| # checkout only needed to read build.txt. if run manually we specify the version as an input value | |
| if: github.event_name != 'workflow_dispatch' | |
| - name: get build number | |
| id: get_version | |
| run: | | |
| if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then | |
| version=${{ inputs.version }} | |
| else | |
| version="$(cat build.txt)" | |
| fi | |
| echo "version: $version" | |
| echo "version=$version" >> "$GITHUB_OUTPUT" | |
| build: | |
| needs: get_version | |
| uses: ./.github/workflows/ide_build_and_upload.yml | |
| with: | |
| artifacts_dir: out/idea-ce/artifacts | |
| product: intellij_idea | |
| version: ${{ needs.get_version.outputs.version }} | |
| release: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| needs: | |
| - get_version | |
| - build | |
| if: github.event_name == 'workflow_dispatch' | |
| steps: | |
| - uses: actions/download-artifact@v4.1.8 | |
| - name: create appimage zsync file | |
| run: zsyncmake **/*.AppImage | |
| - name: Create Release | |
| uses: marvinpinto/action-automatic-releases@v1.2.1 | |
| with: | |
| title: ${{ needs.get_version.outputs.version }} | |
| automatic_release_tag: ${{ needs.get_version.outputs.version }} | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| prerelease: false # ideally this would be true because rebased has not had a stable release yet, but i don't like that prereleases don't appear on the sidebar | |
| draft: true | |
| files: | | |
| **/*.tar.gz | |
| **/*.AppImage | |
| **/*.zsync | |
| **/*.exe | |
| **/*.dmg | |