-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 949 Bytes
/
Copy pathsource-code.yml
File metadata and controls
47 lines (37 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Source Code (with Git History)
on:
push:
pull_request:
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
shell: bash
run: |
set -euo pipefail
mkdir -p archive
# Proje dosyalarını .git hariç kopyala
rsync -a \
--exclude=archive \
--exclude=.github \
--exclude=.git \
./ archive/
# Git geçmişini ayrı kopyala
cp -a .git archive/
- name: Create ZIP
run: |
cd archive
zip -r ../source-with-history.zip .
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: source-with-history
path: source-with-history.zip