Bump version to 0.5.0 #221
This file contains 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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: '15.2' | |
- name: License Header Check | |
run: mvn license:check | |
- name: Build | |
run: mvn -B package --file pom.xml | |
- name: Analyze | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ | |
-Dsonar.token=$SONAR_TOKEN \ | |
-Dsonar.host.url=https://sonarcloud.io \ | |
-Dsonar.organization=insideapp-oss \ | |
-Dsonar.projectKey=insideapp-oss_sonar-apple | |
- name: Read version | |
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV | |
- name: Upload snapshot release | |
if: github.ref == 'refs/heads/develop' | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{github.workspace}}/sonar-apple-plugin/target/*.jar | |
tag: ${{env.version}} | |
overwrite: true | |
body: "Snapshot release" | |
file_glob: true | |
prerelease: true |