@@ -58,20 +58,12 @@ jobs:
5858        run : | 
5959          source py313-mac/bin/activate 
6060          pip install -r requirements.txt 
61-        
62-       - name : Set up Git 
63-         run : | 
64-           git config user.name "${{ secrets.BOT_NAME }}" 
65-           git config user.email "${{ secrets.BOT_EMAIL }}" 
66-           git checkout latest-release 
67- 
68-        - name : Commit and push changes 
69-         run : | 
70-           git add . 
71-           git commit -m "Build for MacOS" 
72-           git push origin latest-release 
73-          env :
74-           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
61+            
62+        - name : Upload Artifact 
63+         uses : actions/upload-artifact@v4 
64+         with :
65+           name : mac-artifact 
66+           path : py313-mac/ 
7567
7668  build-windows :
7769    runs-on : windows-latest 
@@ -98,19 +90,11 @@ jobs:
9890          .\py313-win\Scripts\activate 
9991          pip install -r requirements.txt 
10092       
101-       - name : Set up Git 
102-         run : | 
103-           git config user.name "${{ secrets.BOT_NAME }}" 
104-           git config user.email "${{ secrets.BOT_EMAIL }}" 
105-           git checkout latest-release 
106- 
107-        - name : Commit and push changes 
108-         run : | 
109-           git add . 
110-           git commit -m "Build for Windows" 
111-           git push origin latest-release 
112-          env :
113-           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
93+       - name : Upload Artifact 
94+         uses : actions/upload-artifact@v4 
95+         with :
96+           name : win-artifact 
97+           path : py313-win/ 
11498
11599  build-linux :
116100    runs-on : ubuntu-latest 
@@ -137,20 +121,12 @@ jobs:
137121          source py313-linux/bin/activate 
138122          pip install -r requirements.txt 
139123       
140-       - name : Set up Git 
141-         run : | 
142-           git config user.name "${{ secrets.BOT_NAME }}" 
143-           git config user.email "${{ secrets.BOT_EMAIL }}" 
144-           git checkout latest-release 
145- 
146-        - name : Commit and push changes 
147-         run : | 
148-           git add . 
149-           git commit -m "Build for Linux" 
150-           git push -f origin latest-release 
151-          env :
152-           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
153-       
124+       - name : Upload Artifact 
125+         uses : actions/upload-artifact@v4 
126+         with :
127+           name : linux-artifact 
128+           path : py313-linux/ 
129+   
154130  release :
155131    runs-on : ubuntu-latest 
156132    needs : [branch-setup, build-mac, build-windows, build-linux] 
@@ -164,6 +140,16 @@ jobs:
164140      - name : Remove README 
165141        run : | 
166142          rm -f requirements.txt 
143+        
144+       - name : Download Artifacts 
145+         uses : actions/download-artifact@v4 
146+         with :
147+           path : ./artifacts 
148+ 
149+       - name : Move Artifacts 
150+         run : | 
151+           mv artifacts/* . 
152+           rm -rf artifacts 
167153
168154       - name : Version File 
169155        run : | 
0 commit comments