Skip to content

Commit

Permalink
seperated the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed May 23, 2021
1 parent 366d01c commit 7681f25
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
env:
version: 0.0.1 # 你的版本名稱
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
plugin_name: PluginModule

name: Publish Process

# ↓ 自動生成 下載檔案 及 javadoc
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
Expand Down Expand Up @@ -48,8 +47,8 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./PluginModule/target/PluginModule-${{env.version}}.jar # 請根據你插件名稱進行的修改
asset_name: PluginModule-${{ env.version }}.jar # 請根據你插件名稱進行的修改
asset_path: ./${{ env.plugin_name }}/target/${{ env.plugin_name }}-${{env.version}}.jar # 請根據你插件名稱進行的修改
asset_name: ${{ env.plugin_name }}-${{ env.version }}.jar # 請根據你插件名稱進行的修改
asset_content_type: application/java-archive
- name: 'Update javadocs'
id: update-javadoc
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Process

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout Source Code
id: checkout-source
uses: actions/checkout@v2
- name: Set up JDK 11
id: setup-java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit 7681f25

Please sign in to comment.