-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
4 changed files
with
12 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
name: Manual Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
confirmeRelease: | ||
description: 'Confirm manual release creation (by typing "true") ? ----- WARNING : check version (in pom.xml files) and release notes (in CHANGELOG.md file) before confirm' | ||
default: 'false' | ||
|
||
jobs: | ||
checks: | ||
name: Requirements | ||
|
@@ -14,7 +16,7 @@ jobs: | |
- name: Check user permissions | ||
uses: 74th/[email protected] | ||
with: | ||
users: dedece35,glalloue,jhertout,jules-delecour-dav,olegoaer,zippy1978 | ||
users: dedece35,glalloue,jhertout,jules-delecour-dav,olegoaer,zippy1978,utarwyn | ||
build: | ||
name: Build And Release | ||
needs: checks | ||
|
@@ -68,49 +70,8 @@ jobs: | |
- name: Export UPLOAD_URL | ||
id: export_upload_url | ||
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT | ||
upload-java: | ||
name: Upload Java Plugin | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Import plugin JAR files | ||
id: import_jar_files | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ecocode-plugins | ||
path: lib | ||
- name: Upload Release Asset - Java 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-java-plugin-${{ needs.build.outputs.last_tag }}.jar | ||
asset_name: ecocode-java-plugin-${{ needs.build.outputs.last_tag }}.jar | ||
asset_content_type: application/zip | ||
upload-php: | ||
name: Upload PHP Plugin | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Import plugin JAR files | ||
id: import_jar_files | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ecocode-plugins | ||
path: lib | ||
- name: Upload Release Asset - PHP 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-php-plugin-${{ needs.build.outputs.last_tag }}.jar | ||
asset_name: ecocode-php-plugin-${{ needs.build.outputs.last_tag }}.jar | ||
asset_content_type: application/zip | ||
upload-python: | ||
|
||
upload: | ||
name: Upload Python Plugin | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
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,8 +1,10 @@ | ||
name: Tag Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
checks: | ||
name: Requirements | ||
|
@@ -11,7 +13,7 @@ jobs: | |
- name: Check user permissions | ||
uses: 74th/[email protected] | ||
with: | ||
users: dedece35,glalloue,jhertout,jules-delecour-dav,olegoaer,zippy1978 | ||
users: dedece35,glalloue,jhertout,jules-delecour-dav,olegoaer,zippy1978,utarwyn | ||
build: | ||
name: Build And Release | ||
runs-on: ubuntu-latest | ||
|
@@ -48,7 +50,8 @@ jobs: | |
- name: Export UPLOAD_URL | ||
id: export_upload_url | ||
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT | ||
upload-python: | ||
|
||
upload: | ||
name: Upload Python Plugin | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
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