MengYX
4 years ago
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
2 changed files with
28 additions and
1 deletions
-
.github/workflows/build.yml
-
.github/workflows/release.yml
|
|
@ -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 |
|
|
|
|
|
@ -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: |
|
|
|