Skip to content

Commit

Permalink
[ci skip] Merge pull request #9 from FN-FAL113/main
Browse files Browse the repository at this point in the history
[pull] main from FN-FAL113:main
  • Loading branch information
weiii-joe committed Jul 7, 2023
2 parents ec42ce6 + dff1095 commit 18212c4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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',
})
14 changes: 8 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 18212c4

Please sign in to comment.