Mirai-bot/.gitea/workflows/build-test.yaml
Grand-cocoa e7ad348544
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 9s
修改打包方式Action
2024-12-26 14:37:13 +08:00

19 lines
642 B
YAML

name: Mirai-build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [ push ]
env:
BARE_REPO_DIR: https://git.alina-dace.info/Dace/Mirai-bot.git
CLONED_REPO_DIR: ./
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: |
rm -rf ./*
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
- run: pwd
# - run: ls -sl
# - run: chmod +x ./mvnw
- run: docker run -it --rm --name my-maven-project -v "$(pwd)":/usr/src/mymaven -v maven-repo:/root/.m2 -w /usr/src/mymaven maven mvn -DskipTests=true clean package -P prod-remote
- run: docker build -t mirai-bot:latest