Skip to content

Commit

Permalink
actions: should fix artifact folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranke committed Dec 12, 2024
1 parent 389423a commit c42d1a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,23 @@ jobs:
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' -j2
ls -l project/addons/*/bin/
- name: Copy extra files to addon
- name: Copy README.md and LICENSE to addon and make a new directory for artifacts
shell: sh
run: |
for addon in ${{ github.workspace }}/project/addons/*/; do
cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' "$addon"
done
# Works around https://github.com/actions/upload-artifact/issues/174
mkdir ${{ github.workspace }}/${{ github.event.repository.name }}/
mv ${{ github.workspace }}/project/addons/ ${{ github.workspace }}/${{ github.event.repository.name }}/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.identifier }}
path: |
${{ github.workspace }}/project/
${{ github.workspace }}/${{ github.event.repository.name }}
merge:
runs-on: ubuntu-22.04
needs: build
Expand Down

0 comments on commit c42d1a7

Please sign in to comment.