Update CI: Add Extension Build
This commit is contained in:
parent
042b1ca0dd
commit
c6ea98333e
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -27,9 +27,11 @@ jobs:
|
||||
build: [ legacy, modern ]
|
||||
include:
|
||||
- build: legacy
|
||||
BUILD_ARGS:
|
||||
BUILD_ARGS: ""
|
||||
BUILD_EXTENSION: true
|
||||
- build: modern
|
||||
BUILD_ARGS: "-- --modern"
|
||||
BUILD_EXTENSION: false
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@ -59,8 +61,21 @@ jobs:
|
||||
npm run build ${{ matrix.BUILD_ARGS }}
|
||||
tar -czvf dist.tar.gz -C ./dist .
|
||||
|
||||
- name: Build Extension
|
||||
if: ${{ matrix.BUILD_EXTENSION }}
|
||||
run: |
|
||||
npm run make-extension
|
||||
zip -rJ9 extension.zip ./dist
|
||||
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: unlock-music-${{ matrix.build }}.tar.gz
|
||||
path: ./dist.tar.gz
|
||||
|
||||
- name: Publish artifact - Extension
|
||||
if: ${{ matrix.BUILD_EXTENSION }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: extension.zip
|
||||
path: ./extension.zip
|
||||
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -37,6 +37,8 @@ jobs:
|
||||
npm run build
|
||||
tar -czf legacy.tar.gz -C ./dist .
|
||||
zip -rJ9 legacy.zip ./dist
|
||||
npm run make-extension
|
||||
zip -rJ9 extension.zip ./dist
|
||||
|
||||
- name: Build Modern
|
||||
env:
|
||||
@ -109,6 +111,16 @@ jobs:
|
||||
asset_name: modern.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Upload Release Assets - extension.zip
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./extension.zip
|
||||
asset_name: extension.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Upload Release Assets - sha256sum.txt
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
env:
|
||||
|
Loading…
Reference in New Issue
Block a user