Skip to content

Commit

Permalink
Update assetlib_sync.yml to use demo.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
2shady4u committed Mar 15, 2024
1 parent cc08cf4 commit 132f4e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/assetlib_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ jobs:
- name: Download Release Assets
uses: dsaltares/fetch-gh-release-asset@master
with:
file: "addons.zip"
target: "addons.zip"
file: "demo.zip"
target: "demo.zip"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Decompress & Commit Release Assets
run: |
unzip -o addons.zip
unzip -o demo.zip
cp -rf demo/addons/ .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A :!addons.zip
git add -A addons/
git commit -m "Update to latest Github Actions"
git tag ${{ github.event.release.tag_name }}-assetlib
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
body_path: ${{ env.PROJECT_FOLDER }}/.github/workflows/release_template.md
draft: true
prerelease: true
token: ${{ secrets.PAT }} # Use a personal access token such that the asetlib_sync.yml is triggered by this release!
files: |
${{ env.PROJECT_FOLDER }}/demo.zip
${{ env.PROJECT_FOLDER }}/${{ env.TARGET_PATH }}/../bin.zip
${{ env.PROJECT_FOLDER }}/${{ env.TARGET_PATH }}/../bin.zip
draft: true
prerelease: true

0 comments on commit 132f4e0

Please sign in to comment.