更新 .gitea/workflows/demo.yaml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 51s

This commit is contained in:
Sakinami committed 2026-09-27 17:27:22 +08:00
1 parent 7af6267711
commit 6093a50548
1 file changed
+18 -1
+18 -1
View File
@@ -29,4 +29,21 @@ jobs:
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- 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