Skip to content

Commit

Permalink
Merge pull request #2 from mrjsj/update-build-pipeline-deps
Browse files Browse the repository at this point in the history
Update build pipeline deps
  • Loading branch information
mrjsj authored Jun 6, 2024
2 parents ee0038e + b7aae9a commit b6046ce
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ jobs:
- name: Upload Artifact
env:
ARTIFACT_FOLDER: ${{ env.PROJECT_FOLDER }}/${{ env.TARGET_PATH }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}
name: artifact-${{ matrix.platform }}-${{ matrix.target }}
path: ${{ env.ARTIFACT_FOLDER }}
if-no-files-found: error

Expand All @@ -163,15 +163,20 @@ jobs:

- name: Download Artifacts
id: download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Copy Artifacts to bin/-folder
run: |
mkdir -v -p ${{ env.PROJECT_FOLDER }}/${{ env.TARGET_PATH }}
cd ${{ env.PROJECT_FOLDER }}
cp -r ${{steps.download.outputs.download-path}}/**/* ${{ env.TARGET_PATH }}
cp -rf ${{steps.download.outputs.download-path}}/artifact-macos-template_debug/* ${{ env.TARGET_PATH }}
cp -rf ${{steps.download.outputs.download-path}}/artifact-macos-template_release/* ${{ env.TARGET_PATH }}
cp -rf ${{steps.download.outputs.download-path}}/artifact-windows-template_debug/* ${{ env.TARGET_PATH }}
cp -rf ${{steps.download.outputs.download-path}}/artifact-windows-template_release/* ${{ env.TARGET_PATH }}
zip -r demo.zip demo/
cd ${{ env.TARGET_PATH }}/..
zip -r bin.zip bin/
Expand Down Expand Up @@ -216,7 +221,7 @@ jobs:
- name: Download Artifacts
id: download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts

Expand All @@ -226,7 +231,10 @@ jobs:
- name: Copy artifacts to bin directory
run: |
cp -r ./artifacts/**/* ./addons/godot-duckdb/bin/
cp -rf ./artifacts/artifact-macos-template_debug/* ./addons/godot-duckdb/bin/
cp -rf ./artifacts/artifact-macos-template_release/* ./addons/godot-duckdb/bin/
cp -rf ./artifacts/artifact-windows-template_debug/* ./addons/godot-duckdb/bin/
cp -rf ./artifacts/artifact-windows-template_release/* ./addons/godot-duckdb/bin/
- name: Commit changes and push
run: |
Expand Down

0 comments on commit b6046ce

Please sign in to comment.