Commit ·
59831a1
1
Parent(s): 6eec928
feature(#192): updated with chrome extension release
Browse files
.github/workflows/chrome-extension-release.yml
CHANGED
|
@@ -34,26 +34,44 @@ jobs:
|
|
| 34 |
- name: Build
|
| 35 |
run: npm run build
|
| 36 |
|
| 37 |
-
- name: Archive Production Artifact
|
| 38 |
-
uses: actions/upload-artifact@v2
|
| 39 |
-
with:
|
| 40 |
-
name: dist
|
| 41 |
-
path: build/
|
| 42 |
-
|
| 43 |
release:
|
| 44 |
needs: build
|
| 45 |
runs-on: ubuntu-latest
|
| 46 |
|
| 47 |
steps:
|
| 48 |
-
- name:
|
| 49 |
-
uses: actions/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
with:
|
| 51 |
name: dist
|
|
|
|
| 52 |
|
| 53 |
-
- name: Release
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
| 55 |
with:
|
| 56 |
-
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
env:
|
| 59 |
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
- name: Build
|
| 35 |
run: npm run build
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
release:
|
| 38 |
needs: build
|
| 39 |
runs-on: ubuntu-latest
|
| 40 |
|
| 41 |
steps:
|
| 42 |
+
- name: Checkout
|
| 43 |
+
uses: actions/checkout@v2
|
| 44 |
+
|
| 45 |
+
- name: Install Dependencies
|
| 46 |
+
run: npm install
|
| 47 |
+
|
| 48 |
+
- name: Build
|
| 49 |
+
run: npm run build
|
| 50 |
+
|
| 51 |
+
- name: Archive Production Artifact
|
| 52 |
+
uses: actions/upload-artifact@v2
|
| 53 |
with:
|
| 54 |
name: dist
|
| 55 |
+
path: build/
|
| 56 |
|
| 57 |
+
- name: Create Release
|
| 58 |
+
id: create_release
|
| 59 |
+
uses: actions/create-release@v1
|
| 60 |
+
env:
|
| 61 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 62 |
with:
|
| 63 |
+
tag_name: ${{ github.ref }}
|
| 64 |
+
release_name: Release ${{ github.ref }}
|
| 65 |
+
draft: false
|
| 66 |
+
prerelease: false
|
| 67 |
+
|
| 68 |
+
- name: Upload Release Asset
|
| 69 |
+
id: upload-release-asset
|
| 70 |
+
uses: actions/upload-release-asset@v1
|
| 71 |
env:
|
| 72 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
| 73 |
+
with:
|
| 74 |
+
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
| 75 |
+
asset_path: ./build/${{ github.ref }}.zip
|
| 76 |
+
asset_name: ${{ github.ref }}.zip
|
| 77 |
+
asset_content_type: application/zip
|