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