update android repo #282
Workflow file for this run
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: | |
| # i had to fix up the history of master due to the messed up way upstream releases are done. | |
| # i didn't want to actually touch its history so i created a new master branch instead. | |
| - master2 | |
| pull_request: | |
| 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/[email protected] | |
| # 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/[email protected] | |
| - name: Create Release | |
| uses: marvinpinto/[email protected] | |
| 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 | |