Skip to content

Commit

Permalink
Fix packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ollej committed Aug 21, 2022
1 parent ab4266b commit 7078117
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ jobs:
artifact_name: bunner-macroquad
zip_file: bunner-macroquad-linux.tar.gz
asset_name: bunner-macroquad-linux-$tag.tar.gz
directory: bunner-macroquad-${{ github.ref_name }}
directory: bunner-macroquad-linux-${{ github.ref_name }}
target: 'x86_64-unknown-linux-gnu'
- os: windows-latest
artifact_name: bunner-macroquad.exe
zip_file: bunner-macroquad-windows.zip
asset_name: bunner-macroquad-windows-$tag.zip
directory: bunner-macroquad-${{ github.ref_name }}
directory: bunner-macroquad-windows-${{ github.ref_name }}
target: 'x86_64-pc-windows-msvc'
- os: macos-latest
artifact_name: bunner-macroquad
zip_file: bunner-macroquad-macos.zip
asset_name: bunner-macroquad-macos-$tag.zip
directory: bunner-macroquad-${{ github.ref_name }}
directory: bunner-macroquad-macos-${{ github.ref_name }}
target: 'x86_64-apple-darwin'
- os: ubuntu-latest
artifact_name: bunner-macroquad.wasm
zip_file: bunner-macroquad-wasm.zip
asset_name: bunner-macroquad-wasm-$tag.zip
directory: bunner-macroquad-${{ github.ref_name }}
directory: bunner-macroquad-wasm-${{ github.ref_name }}
target: 'wasm32-unknown-unknown'
include:
- os: ubuntu-latest
Expand Down Expand Up @@ -68,22 +68,22 @@ jobs:
if: matrix.config.target == 'wasm32-unknown-unknown'
run: |
mkdir ${{ matrix.config.directory }}
cp -pR resources ${{ matrix.config.directory }}
cp -pR target/${{ matrix.config.target }}/release/${{ matrix.config.artifact_name }} demo/index.html demo/mq_js_bundle.js demo/manifest.json ${{ matrix.config.directory }}
cp -pR resources ${{ matrix.config.directory }}/
cp -pR target/${{ matrix.config.target }}/release/${{ matrix.config.artifact_name }} demo/index.html demo/mq_js_bundle.js demo/manifest.json ${{ matrix.config.directory }}/
zip ${{ matrix.config.zip_file }} ${{ matrix.config.directory }}
- name: Zip release archive
if: matrix.config.target == 'x86_64-unknown-linux-gnu'
run: |
mkdir ${{ matrix.config.directory }}
cp -pR resources ${{ matrix.config.directory }}
cp target/${{ matrix.config.target }}/release/${{ matrix.config.artifact_name }} ${{ matrix.config.directory }}
cp -pR resources ${{ matrix.config.directory }}/
cp target/${{ matrix.config.target }}/release/${{ matrix.config.artifact_name }} ${{ matrix.config.directory }}/
tar -zcf ${{ matrix.config.zip_file }} ${{ matrix.config.directory }}
- name: Zip release archive
if: runner.os == 'Windows' || runner.os == 'macOS'
run: |
mkdir -p ${{ matrix.config.directory }}/resources
cp -R resources ${{ matrix.config.directory }}
cp target/${{ matrix.config.target }}/release/${{ matrix.config.artifact_name }} ${{ matrix.config.directory }}
mkdir -p ${{ matrix.config.directory }}
cp -R resources ${{ matrix.config.directory }}/
cp target/${{ matrix.config.target }}/release/${{ matrix.config.artifact_name }} ${{ matrix.config.directory }}/
7z a -tzip ${{ matrix.config.zip_file }} ${{ matrix.config.directory }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 7078117

Please sign in to comment.