From 3e2bcbe92285e731ece801a7ed2d6bea6d739f3b Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 10 Apr 2024 09:53:58 +0100 Subject: [PATCH] add readme and update ci --- .gitea/workflows/ci.yml | 40 +++++++++++++++++++++++++++++----------- README.md | 7 +++++++ 2 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 README.md diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2cf20ba..fea50b5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,32 +1,50 @@ -name: "ci" +name: Deploy App on: push: - branches: - - master + branches: ["master"] + paths-ignore: + - .gitignore + - README.md + - LICENSE + - docker-compose.yml + - postman_collection.json jobs: - deploy: - runs-on: ubuntu-latest + docker: + strategy: + matrix: + arch: ["ubuntu-latest"] + git-version: ["2.44.0"] + java-version: ["17"] + maven-version: ["3.8.5"] + runs-on: ${{ matrix.arch }} + + # Steps to run steps: - - name: Cloning repo + # Checkout the repo + - name: Checkout uses: actions/checkout@v4 - - name: Set up JDK 17 and Maven + # Setup Java and Maven + - name: Set up JDK and Maven uses: s4u/setup-maven-action@v1.12.0 with: - java-version: '17' - distribution: 'zulu' - maven-version: 3.8.5 + java-version: ${{ matrix.java-version }} + distribution: "zulu" + maven-version: ${{ matrix.maven-version }} + # Run JUnit Tests - name: Run Tests run: mvn --batch-mode test -q - - name: Cloning repo + # Re-checkout to reset the FS before deploying to Dokku + - name: Checkout - Reset FS uses: actions/checkout@v4 with: fetch-depth: 0 + # Deploy to Dokku - name: Push to dokku uses: dokku/github-action@master with: diff --git a/README.md b/README.md new file mode 100644 index 0000000..85b74ad --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Minecraft Utilities API + +Wrapper for the Minecraft APIs to make them easier to use. + +## Usage + +View the [documentation](https://mc.fascinated.cc/swagger-ui/index.html) or visit the [website](https://mc.fascinated.cc) for more information. \ No newline at end of file