0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Github Actions で隠しディレクトリ・ファイルがアップロードできない ( actions/upload-artifact@v4 )

Posted at

問題

.up のような隠しディレクトリをアップロードしようとすると、エラーが起きてしまう

エラー例

Error: No files were found with the provided path: .up/. No artifacts will be uploaded.

解決

upload-artifact@v4 では隠しファイル、ディレクトリをアップロードする時はオプションを指定しなければいけなくなったようだ

jobs:
  setup:
    name: 'Setup'
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Upload Test
        uses: actions/upload-artifact@v4
        with:
          name: upload-test
          if-no-files-found: error
+         include-hidden-files: true
          path: .up

公式

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?