-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David DE CARVALHO
committed
Dec 15, 2022
1 parent
122602b
commit 82eaf20
Showing
4 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Tag Release | ||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
jobs: | ||
build: | ||
name: Build And Release | ||
runs-on: ubuntu-latest | ||
outputs: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Extract release notes | ||
id: extract-release-notes | ||
uses: ffurrer2/extract-release-notes@v1 | ||
with: | ||
prerelease: true | ||
- name: Prepare CodeNarc dependency | ||
working-directory: . | ||
run: ./tool_prepare-codenarc | ||
- name: Build project | ||
run: mvn -e -B clean package -DskipTests | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
body: ${{ steps.extract-release-notes.outputs.release_notes }} | ||
- name: Share upload URL | ||
id: share_upload_url | ||
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT | ||
- name: Share plugin Jar files | ||
id: share_jar_files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ecocode-plugins | ||
path: lib | ||
updload-android: | ||
name: Upload Android Plugin | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Download plugin JAR files | ||
id: download_jar_files | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ecocode-plugins | ||
path: lib | ||
- name: Upload Release Asset - Android Plugin | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{needs.build.outputs.upload_url}} | ||
asset_path: lib/ecocode-android-0.1.0-SNAPSHOT.jar | ||
asset_name: ecocode-android-plugin-${{ github.ref_name }}.jar | ||
asset_content_type: application/zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.* | ||
|
||
!.gitignore | ||
!.github/workflows | ||
!.github/**/*.* | ||
|
||
.* | ||
|
||
target | ||
*.iml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2022-12-15 | ||
|
||
### Added | ||
|
||
- First official release of ecocode plugins : android plugin | ||
|
||
[unreleased]: https://github.com/green-code-initiative/ecoCode/compare/v0.1.1...HEAD | ||
[0.1.1]: https://github.com/green-code-initiative/ecoCode/compare/v0.1.0...v0.1.1 | ||
[0.1.0]: https://github.com/green-code-initiative/ecoCode/releases/tag/v0.1.0 |