-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from ELDEpendenci/develop
v2.0.3
- Loading branch information
Showing
15 changed files
with
91 additions
and
86 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 |
---|---|---|
|
@@ -10,44 +10,38 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: read | ||
steps: | ||
- name: Checkout Source Code | ||
id: checkout-source | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v2 | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '18' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- run: mvn --batch-mode clean package | ||
name: build plugins | ||
- run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=eld.plugin.version -q -DforceStdout) | ||
id: project | ||
|
||
- name: Delete existing release and tag | ||
continue-on-error: true | ||
id: delete-tag-release | ||
uses: dev-drprasad/delete[email protected] | ||
with: | ||
tag_name: ${{ steps.project.outputs.version }} | ||
delete_release: true | ||
run: gh release delete ${{ steps.project.outputs.version }} --yes --cleanup-tag | ||
|
||
- name: zip plugins | ||
run: zip -r plugins.zip outputs | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ steps.project.outputs.version }} | ||
release_name: Release ${{ github.repository }} v${{ steps.project.outputs.version }} | ||
name: Release ${{ github.repository }} v${{ steps.project.outputs.version }} | ||
body: 請到 [wiki](https://eric2788.gitbook.io/eldependenci/references/version-update) 查看更新內容 | ||
- name: zip plugins | ||
run: zip -r plugins.zip outputs | ||
|
||
- name: Upload Release jar | ||
id: upload-release-asset-jar | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./plugins.zip | ||
asset_name: plugins.zip | ||
asset_content_type: application/zip | ||
files: plugins.zip | ||
|
||
- name: 'Update javadocs' | ||
run: | | ||
|
@@ -79,17 +73,17 @@ jobs: | |
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions-ecosystem/action-get-latest-tag@v1 | ||
id: latest-tag | ||
- uses: jungwinter/split@v2 | ||
id: version | ||
with: | ||
msg: ${{ steps.latest-tag.outputs.tag }} | ||
separator: '.' | ||
- uses: actions/setup-java@v2 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '18' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Publish package | ||
run: mvn --batch-mode clean deploy | ||
|
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,30 @@ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
name: Publish WorkFlows for ELDependenci feature/hotfix branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*/*' | ||
- '!master' | ||
- '!develop' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
id: checkout-source | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- run: mvn --batch-mode -Dmaven.deploy.skip=true -Dmaven.javadoc.skip=true clean package | ||
name: build plugins | ||
- uses: actions/upload-artifact@v4 | ||
name: 'upload plugins' | ||
with: | ||
name: 'plugins' | ||
path: 'outputs/' |
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
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
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
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
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
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
Oops, something went wrong.