5252 - name : Create Version Tag
5353 run : echo "${{github.run_id}}" > VERSION
5454 - name : Compile
55- run : haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}} "
55+ run : haxelib run lime build Project.xml linux"
5656 - name : Publish Artifact
5757 uses : actions/upload-artifact@v4
5858 with :
8989 - name : Create Version Tag
9090 run : echo "${{github.run_id}}" > VERSION
9191 - name : Compile
92- run : haxelib run lime build windows --app-version="4.0.0-${{ github.run_id}} "
92+ run : haxelib run lime build windows"
9393 - name : Publish Artifact
9494 uses : actions/upload-artifact@v4
9595 with :
@@ -125,7 +125,7 @@ jobs:
125125 - name : Create Version Tag
126126 run : echo "${{github.run_id}}" > VERSION
127127 - name : Compile
128- run : arch -x86_64 haxelib run lime build mac --app-version="4.0.0-${{ github.run_id}} "
128+ run : arch -x86_64 haxelib run lime build mac"
129129 - name : Publish Artifact
130130 uses : actions/upload-artifact@v4
131131 with :
@@ -280,4 +280,75 @@ jobs:
280280 upload_url : ${{ steps.create_release.outputs.upload_url }}
281281 asset_path : macBuild.zip
282282 asset_name : macBuild.zip
283- asset_content_type : application/zip
283+ asset_content_type : application/zip
284+
285+ - name : Setup git config
286+ run : |
287+ git config user.name "GitHub Actions Bot"
288+ git config user.email "<>"
289+
290+ # publish windows
291+
292+ - name : Checkout windows build
293+ uses : actions/checkout@v3
294+ with :
295+ repository : Funkin-Psych-Online-Builds
296+ ref : ' windows'
297+ token : ${{ secrets.BUILDS_GITHUB_TOKEN }}
298+ lfs : true
299+ path : ' builds_repo'
300+ sparse-checkout : |
301+ .gitattributes
302+ sparse-checkout-cone-mode : false
303+
304+ - name : Publish windows build
305+ run : |
306+ cd builds_repo
307+ rm -rf *
308+ cp -rfu ../windowsBuild/* ./
309+ git commit -m "${{github.run_id}}"
310+ git push origin windows --force
311+
312+ # publish linux
313+
314+ - name : Checkout linux build
315+ uses : actions/checkout@v3
316+ with :
317+ repository : Funkin-Psych-Online-Builds
318+ ref : ' linux'
319+ token : ${{ secrets.BUILDS_GITHUB_TOKEN }}
320+ lfs : true
321+ path : ' builds_repo'
322+ sparse-checkout : |
323+ .gitattributes
324+ sparse-checkout-cone-mode : false
325+
326+ - name : Publish linux build
327+ run : |
328+ cd builds_repo
329+ rm -rf *
330+ cp -rfu ../linuxBuild/* ./
331+ git commit -m "${{github.run_id}}"
332+ git push origin linux --force
333+
334+ # publish macos
335+
336+ - name : Checkout macos build
337+ uses : actions/checkout@v3
338+ with :
339+ repository : Funkin-Psych-Online-Builds
340+ ref : ' macos'
341+ token : ${{ secrets.BUILDS_GITHUB_TOKEN }}
342+ lfs : true
343+ path : ' builds_repo'
344+ sparse-checkout : |
345+ .gitattributes
346+ sparse-checkout-cone-mode : false
347+
348+ - name : Publish macos build
349+ run : |
350+ cd builds_repo
351+ rm -rf *
352+ cp -rfu ../macBuild/* ./
353+ git commit -m "${{github.run_id}}"
354+ git push origin macos --force
0 commit comments