Bump softprops/action-gh-release from 2.2.2 to 2.3.3 #67
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
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| branches: | |
| - main | |
| - next | |
| pull_request: | |
| branches: | |
| - main | |
| name: Build robot | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| name: Build and deploy | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-tags: true | |
| fetch-depth: 0 | |
| - name: Set SSH key | |
| if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/main') | |
| uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_KEY }} | |
| - name: Add known host key | |
| if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/main') | |
| run: ssh-keyscan mvn.javacard.pro >> ~/.ssh/known_hosts | |
| - name: Setup java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: zulu | |
| cache: maven | |
| - name: Compile and verify | |
| run: ./mvnw -P exe -U -B -T1C verify | |
| - name: Deploy snapshot | |
| if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/main') | |
| run: ./mvnw -B deploy | |
| - name: Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| id: create_release | |
| uses: softprops/[email protected] | |
| with: | |
| files: | | |
| tool/target/yafu.jar | |
| tool/target/yafu.exe | |
| fail_on_unmatched_files: true | |
| body: Release ${{ github.ref_name }} | |
| prerelease: true # manually promoted |