
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 2s
更新了Gitea Actions的配置,使其能够适配Mirai-bot项目的构建和测试。工作流被重命名为“Mirai-build”,并且新的环境变量指定了裸仓库和克隆仓库的目录。此外,流程中包含了一个新的步骤,用于克隆仓库,并且运行的命令现在会导航到克隆的目录并使`mvnw`可执行。 ```
18 lines
550 B
YAML
18 lines
550 B
YAML
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: |
|
|
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
|