From 31deb821eb526da6e7d8b4048ee5555842d892bb Mon Sep 17 00:00:00 2001 From: Koichi Ito Date: Sat, 10 Oct 2026 18:15:17 +0900 Subject: [PATCH] =?UTF-8?q?/publish/<=E3=82=AA=E3=83=BC=E3=83=8A=E3=83=BC?= =?UTF-8?q?=E5=90=8D>/<=E3=83=AA=E3=83=9D=E3=82=B8=E3=83=88=E3=83=AA?= =?UTF-8?q?=E5=90=8D>/latest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index b71c574..ac2b974 100644 --- a/.drone.yml +++ b/.drone.yml @@ -57,19 +57,19 @@ steps: # --- 2. flash.j-code.org/download へ成果物を公開 --- # /publish はランナー設定(DRONE_RUNNER_VOLUMES)でホストの flash/download に紐付いている - # 公開先: /download/<リポジトリ名>/latest/ (ブランチPush時)、/download/<リポジトリ名>/<タグ>/ (タグ時) + # 公開先: /download/<オーナー名>/<リポジトリ名>/latest/ (ブランチPush時)、/download/<オーナー名>/<リポジトリ名>/<タグ>/ (タグ時) - name: publish-to-flash image: alpine:3 commands: - | if [ "$DRONE_BUILD_EVENT" = "tag" ]; then - DEST="/publish/$DRONE_REPO_NAME/$DRONE_TAG" + DEST="/publish/$DRONE_REPO/$DRONE_TAG" else - DEST="/publish/$DRONE_REPO_NAME/latest" + DEST="/publish/$DRONE_REPO/latest" fi mkdir -p "$DEST" cp build/bootloader.bin build/partitions.bin build/firmware.bin "$DEST/" - chmod -R a+rX "/publish/$DRONE_REPO_NAME" + chmod -R a+rX "/publish/$DRONE_REPO_OWNER" echo "公開先: https://flash.j-code.org/download/${DEST#/publish/}/" when: event: