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 ]
|
build: [ legacy, modern ]
|
||||||
include:
|
include:
|
||||||
- build: legacy
|
- build: legacy
|
||||||
BUILD_ARGS:
|
BUILD_ARGS: ""
|
||||||
|
BUILD_EXTENSION: true
|
||||||
- build: modern
|
- build: modern
|
||||||
BUILD_ARGS: "-- --modern"
|
BUILD_ARGS: "-- --modern"
|
||||||
|
BUILD_EXTENSION: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -59,8 +61,21 @@ jobs:
|
|||||||
npm run build ${{ matrix.BUILD_ARGS }}
|
npm run build ${{ matrix.BUILD_ARGS }}
|
||||||
tar -czvf dist.tar.gz -C ./dist .
|
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
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: unlock-music-${{ matrix.build }}.tar.gz
|
name: unlock-music-${{ matrix.build }}.tar.gz
|
||||||
path: ./dist.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
|
npm run build
|
||||||
tar -czf legacy.tar.gz -C ./dist .
|
tar -czf legacy.tar.gz -C ./dist .
|
||||||
zip -rJ9 legacy.zip ./dist
|
zip -rJ9 legacy.zip ./dist
|
||||||
|
npm run make-extension
|
||||||
|
zip -rJ9 extension.zip ./dist
|
||||||
|
|
||||||
- name: Build Modern
|
- name: Build Modern
|
||||||
env:
|
env:
|
||||||
@ -109,6 +111,16 @@ jobs:
|
|||||||
asset_name: modern.zip
|
asset_name: modern.zip
|
||||||
asset_content_type: application/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
|
- name: Upload Release Assets - sha256sum.txt
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user