
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
将BARE_REPO_DIR环境变量的值从本地路径更改为完整的远程Git仓库URL,以便正确配置仓库位置。 ```
18 lines
539 B
YAML
18 lines
539 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: ./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
|