Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/source-code.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Source Code (with Git History)

on:
push:
pull_request:
workflow_dispatch:

permissions:
Expand All @@ -17,20 +19,26 @@ jobs:
fetch-depth: 0

- name: Create source archive
shell: bash
run: |
mkdir archive
sudo -i
chmod +x archive/.git/objects/info/commit-graphs/graph-*.graph
set -euo pipefail

mkdir -p archive

# Proje dosyalarını .git hariç kopyala
rsync -a \
--exclude archive \
--exclude .github \
--exclude=archive \
--exclude=.github \
--exclude=.git \
./ archive/

cp -r .git archive/
# Git geçmişini ayrı kopyala
cp -a .git archive/

- name: Zip
- name: Create ZIP
run: |
zip -r source-with-history.zip archive
cd archive
zip -r ../source-with-history.zip .

- name: Upload artifact
uses: actions/upload-artifact@v7
Expand Down