From 2ffc519315f8cf6e4ab92e5810596c162a0d78b2 Mon Sep 17 00:00:00 2001 From: Legends11 <235496468+tickwarden@users.noreply.github.com> Date: Mon, 6 Jul 2026 16:41:54 +0300 Subject: [PATCH] Add GitHub Actions workflow for source code archiving --- .github/workflows/source-code.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/source-code.yml diff --git a/.github/workflows/source-code.yml b/.github/workflows/source-code.yml new file mode 100644 index 0000000..d265a67 --- /dev/null +++ b/.github/workflows/source-code.yml @@ -0,0 +1,38 @@ +name: Source Code (with Git History) + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + archive: + runs-on: ubuntu-latest + + steps: + - name: Checkout full repository + uses: actions/checkout@v7 + with: + fetch-depth: 0 + + - name: Create source archive + run: | + mkdir archive + + rsync -a \ + --exclude archive \ + --exclude .github \ + ./ archive/ + + cp -r .git archive/ + + - name: Zip + run: | + zip -r source-with-history.zip archive + + - name: Upload artifact + uses: actions/upload-artifact@v7 + with: + name: source-with-history + path: source-with-history.zip