Attempt at fixing upload (#120)
* Attempt at fixing upload * Trying to be fancy * Clean up zip and upload name
This commit is contained in:
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ github.event.release.name }}
|
RELEASE: ${{ github.event.release.name }}
|
||||||
RELEASE_ZIP: kittycad_diff-viewer_${{ github.event.release.name }}.zip
|
RELEASE_ZIP: kittycad_diff-viewer_${{ github.event.release.name || github.sha }}.zip
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
@ -53,20 +53,23 @@ jobs:
|
|||||||
yarn playwright install chromium --with-deps
|
yarn playwright install chromium --with-deps
|
||||||
yarn playwright test
|
yarn playwright test
|
||||||
|
|
||||||
|
- name: Create release zip
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
zip -r ../$RELEASE_ZIP *
|
||||||
|
cd ..
|
||||||
|
unzip -l $RELEASE_ZIP
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: ${{ env.RELEASE_ZIP }}
|
||||||
|
name: ${{ env.RELEASE_ZIP }}
|
||||||
- name: Create release zip
|
|
||||||
if: github.event_name == 'release'
|
|
||||||
run: |
|
|
||||||
zip -r $RELEASE_ZIP build/
|
|
||||||
|
|
||||||
- name: Upload zip to release
|
- name: Upload zip to release
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
file: $RELEASE_ZIP
|
file: ${{ env.RELEASE_ZIP }}
|
||||||
|
|
||||||
- name: Upload zip to Chrome Web Store
|
- name: Upload zip to Chrome Web Store
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
@ -77,4 +80,4 @@ jobs:
|
|||||||
client_secret: ${{ secrets.CHROME_WEBSTORE_CLIENT_SECRET }}
|
client_secret: ${{ secrets.CHROME_WEBSTORE_CLIENT_SECRET }}
|
||||||
refresh_token: ${{ secrets.CHROME_WEBSTORE_REFRESH_TOKEN }}
|
refresh_token: ${{ secrets.CHROME_WEBSTORE_REFRESH_TOKEN }}
|
||||||
extension_id: gccpihmphokfjpohkmkbimnhhnlpmegp
|
extension_id: gccpihmphokfjpohkmkbimnhhnlpmegp
|
||||||
zip_file: $RELEASE_ZIP
|
zip_file: ${{ env.RELEASE_ZIP }}
|
||||||
|
Reference in New Issue
Block a user