Skip to content

Commit

Permalink
Automatic build
Browse files Browse the repository at this point in the history
  • Loading branch information
lRENyaaa committed Feb 2, 2024
1 parent d2204b6 commit ea86a7d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Residence Automatic Build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

if: contains(github.event.head_commit.message, '[Build Skip]') == false
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Convert project to Maven
run: |
chmod +x converter.sh
./converter.sh
- name: Build with Maven
run: mvn package --file pom.xml

- name: Archive artifacts
uses: actions/upload-artifact@v3
if: success()
with:
name: Residence
path: target/Residence.jar

0 comments on commit ea86a7d

Please sign in to comment.