From 6093a50548165b043211cdecf1a037f3857f8267 Mon Sep 17 00:00:00 2001 From: Shirakawa Sakinami Date: Sun, 27 Sep 2026 17:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/demo.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 3e18ad6..01fcde9 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -29,4 +29,21 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + - run: echo "🍏 This job's status is ${{ job.status }}." + - name: Generate test artifact + run: | + mkdir -p artifact-test + printf 'Gitea artifact upload test\n' > artifact-test/test.txt + date -u >> artifact-test/test.txt + dd if=/dev/urandom of=artifact-test/test.bin bs=1M count=5 + cd artifact-test + sha256sum test.txt test.bin > SHA256SUMS + cat SHA256SUMS + + - name: Upload test artifact + uses: https://github.com/actions/upload-artifact@v3 + with: + name: minio-upload-test + path: artifact-test/ + if-no-files-found: error + retention-days: 3 \ No newline at end of file