From ea1bedd6caee71ab420089f4dc89e7900faaf029 Mon Sep 17 00:00:00 2001 From: Jeff <88238718+FN-FAL113@users.noreply.github.com> Date: Thu, 6 Jul 2023 23:03:56 +0800 Subject: [PATCH 1/2] [ci skip] Create deploy.yml --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..684f8f7 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy to maven builds repo + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: builds repo workflow dispatch + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: "FN-FAL113", + repo: "MavenBuilds", + workflow_id: 'deploy.yml', + ref: 'main', + }) + From dff10950b2acdd0f207a4fad7dd6bd440c0fa53a Mon Sep 17 00:00:00 2001 From: Jeff <88238718+FN-FAL113@users.noreply.github.com> Date: Thu, 6 Jul 2023 23:04:28 +0800 Subject: [PATCH 2/2] [ci skip] Update maven.yml --- .github/workflows/maven.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 408e446..1fab5d7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,23 +1,25 @@ -name: Java CI +name: Build with maven on: push: branches: - - main + - main pull_request: branches: - - main + - main jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.3 + - name: Checkout Repository + uses: actions/checkout@v2.3.3 + - name: Set up JDK 16 uses: actions/setup-java@v1.4.3 with: java-version: 16 - - name: Build with Maven + + - name: Maven Build run: mvn package --file pom.xml