Add Sentry Telemetry Feature #493
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: Build | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| branches: | |
| - 'v*' | |
| pull_request: | |
| tags: | |
| - 'v*' | |
| branches: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| env: | |
| ARTIFACT_NAME: ArkPets | |
| steps: | |
| - name: Show meta info | |
| run: | | |
| echo "Current ref: ${{ github.ref }}" | |
| echo "Current sha: ${{ github.sha }}" | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'liberica' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| gradle-version: '8.14.3' | |
| - name: Setup Inno Setup | |
| run: choco install innosetup --no-progress | |
| - name: Execute gradle tasks | |
| run: gradle clean distAll | |
| - name: Upload exe | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }}-Setup.exe | |
| path: desktop/build/dist/*.exe | |
| - name: Upload zip | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }}.zip | |
| path: desktop/build/dist/*.zip | |
| - name: Upload jar | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }}.jar | |
| path: desktop/build/dist/*.jar | |
| # DUE TO JLINK ISSUES, AUTO RELEASE WAS TEMPORARILY BANNED. | |
| # | |
| # - name: Publish release | |
| # uses: marvinpinto/action-automatic-releases@latest | |
| # if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| # with: | |
| # repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| # automatic_release_tag: "${{ github.ref_name }}" | |
| # draft: false | |
| # prerelease: false | |
| # title: "${{ github.ref_name }}" | |
| # files: desktop/build/dist/* |