From 61b44cd97157f2f640c7a903166377fb8adf6b99 Mon Sep 17 00:00:00 2001 From: Hang Cui Date: Fri, 17 Oct 2025 15:46:46 -0700 Subject: [PATCH] Update repo --- .gitea/workflows/006_passing_files.yaml | 20 ---------------- .../workflows/006_upload_artifact_files.yaml | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 20 deletions(-) delete mode 100644 .gitea/workflows/006_passing_files.yaml create mode 100644 .gitea/workflows/006_upload_artifact_files.yaml diff --git a/.gitea/workflows/006_passing_files.yaml b/.gitea/workflows/006_passing_files.yaml deleted file mode 100644 index 387ac87..0000000 --- a/.gitea/workflows/006_passing_files.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Upload Artifact Example - -on: [push] - -jobs: - build-and-upload: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Create an artifact - run: echo "This is my artifact content." > my_artifact.txt - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: my-build-artifact - path: my_artifact.txt - retention-days: 5 # Optional: Set the retention period for the artifact \ No newline at end of file diff --git a/.gitea/workflows/006_upload_artifact_files.yaml b/.gitea/workflows/006_upload_artifact_files.yaml new file mode 100644 index 0000000..b993403 --- /dev/null +++ b/.gitea/workflows/006_upload_artifact_files.yaml @@ -0,0 +1,24 @@ +name: Upload Artifact + +on: + workflow_dispatch: + +jobs: + build-and-upload: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create an artifact + run: | + ls -la ${{ github.workspace }} + echo "This is my artifact content." > artifact.txt + ls -la ${{ github.workspace }} + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: build-artifact + path: artifact.txt + retention-days: 5 # Optional: Set the retention period for the artifact \ No newline at end of file