
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 10s
添加了两个新步骤来打印当前工作目录和列出克隆存储库目录的内容。这将帮助诊断克隆和构建过程中遇到的任何问题。 更改前:``` 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 ``` 更改后: ``` rm -rf $CLONED_REPO_DIR git clone $BARE
20 lines
576 B
YAML
20 lines
576 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: pwd
|
|
- run: ls -sl
|
|
- run: chmod +x ./mvnw
|
|
- run: sh ./mvnw -DskipTests=true clean package -P prod
|
|
- run: docker build -t mirai-bot:latest
|