Skip to content

chore: prepare release #5

chore: prepare release

chore: prepare release #5

Workflow file for this run

name: Release
on:
push:
tags:
- 0.*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Retrieve tag name
uses: olegtarasov/[email protected]
id: tag_name
- name: Set up JDK 1.11
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
check-latest: true
cache: 'maven'
- name: Set version
run: mvn versions:set -DnewVersion=$GIT_TAG_NAME
- 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.login=$SONAR_TOKEN \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=insideapp-oss \
-Dsonar.projectKey=insideapp-oss_sonar-flutter
- name: Upload release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{github.workspace}}/sonar-flutter-plugin/target/*.jar
tag: ${{ steps.tag_name.outputs.tag }}
overwrite: true
body: ${{steps.build_changelog.outputs.changelog}}
file_glob: true