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', + }) + 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