Skip to content

Commit

Permalink
Merge pull request #74 from kuhnroyal/chore/release-handling
Browse files Browse the repository at this point in the history
Release handling
  • Loading branch information
kuhnroyal authored Sep 2, 2021
2 parents b703ec7 + f4bcfdb commit daccfb1
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 40 deletions.
45 changes: 31 additions & 14 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
name: CI

on: [push]
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
- uses: actions/[email protected]
- name: Set up JDK 1.11
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
- id: get-version
name: Get maven project version
uses: jactions/[email protected]
- name: Upload plugin artifact
uses: actions/[email protected]
with:
name: plugin
path: sonar-flutter-plugin/target/sonar-flutter-plugin-${{ steps.get-version.outputs.version }}.jar
6 changes: 3 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
workflow_dispatch:
push:
branches:
- develop
- master

jobs:
update_release_draft:
if: github.repository_owner == 'insideapp-oss'
runs-on: ubuntu-latest
steps:
- uses: release-drafter/[email protected]
- id: release-drafter
uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish release

on:
release:
types: [published]

jobs:
build:
name: Build and upload release
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 1.11
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload release artifact
uses: shogo82148/[email protected]
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: sonar-flutter-plugin/target/sonar-flutter-plugin-*.jar
23 changes: 0 additions & 23 deletions .github/workflows/update-changelog.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Please check the Github releases for newer changelogs!

---

## 0.3.2

#### Breaking
Expand Down

0 comments on commit daccfb1

Please sign in to comment.