Update windows artifacts
This commit is contained in:
parent
d3f4a8f156
commit
4b40d377c1
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -139,19 +139,21 @@ jobs:
|
|||||||
|
|
||||||
echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV
|
echo "ZIP_FILENAME=${ZIP_FILENAME}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# if: github.event_name == 'push' && github.ref == 'refs/heads/action' &&
|
||||||
- name: Package release - Windows
|
- name: Package release - Windows
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/action' && startsWith(matrix.os, 'windows-latest')
|
if: startsWith(matrix.os, 'windows-')
|
||||||
working-directory: extension/build/package
|
working-directory: extension/build/package
|
||||||
run: Compress-Archive -Path * -Destination ${{ env.ZIP_FILENAME }}
|
run: |
|
||||||
|
Compress-Archive -Path * -Destination ${{ env.ZIP_FILENAME }}
|
||||||
|
Copy-Item -Path ${{ env.ZIP_FILENAME }} -Destination ${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}
|
||||||
|
|
||||||
- name: Package release
|
- name: Package release - Linux
|
||||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/action' && startsWith(matrix.os, 'ubuntu-latest')
|
if: startsWith(matrix.os, 'ubuntu-')
|
||||||
working-directory: extension/build/package
|
working-directory: extension/build/package
|
||||||
run: |
|
run: |
|
||||||
zip -r "${{ env.ZIP_FILENAME }}" .
|
zip -r "${{ env.ZIP_FILENAME }}" .
|
||||||
cp "${{ env.ZIP_FILENAME }}" "${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}"
|
cp "${{ env.ZIP_FILENAME }}" "${{ matrix.os }}_${{ matrix.cc }}_${{ env.ZIP_FILENAME }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/action' && (startsWith(matrix.os, 'ubuntu-latest') || startsWith(matrix.os, 'windows-latest'))
|
if: github.event_name == 'push' && github.ref == 'refs/heads/action' && (startsWith(matrix.os, 'ubuntu-latest') || startsWith(matrix.os, 'windows-latest'))
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user