diff --git a/.gitea/workflows/build-test.yaml b/.gitea/workflows/build-test.yaml index 0b60a1c..a2bc646 100644 --- a/.gitea/workflows/build-test.yaml +++ b/.gitea/workflows/build-test.yaml @@ -1,15 +1,17 @@ -name: Gitea Actions Demo +name: Mirai-build run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [ push ] - +env: + BARE_REPO_DIR: /var/lib/gitea/data/gitea-repositories/Dace/Mirai-bot.git + CLONED_REPO_DIR: ./Dace/Mirai-bot jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: pwd - - run: ls - - run: cd ${{ gitea.workspace }} - - run: pwd - - run: ls + - run: | + rm -rf $CLONED_REPO_DIR + git clone $BARE_REPO_DIR $CLONED_REPO_DIR + - run: cd $CLONED_REPO_DIR + - run: chmod +x ./mvnw - run: sh ./mvnw -DskipTests=true clean package -P prod - run: docker build -t mirai-bot:latest