diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9066a782..c649c1c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,9 @@ jobs: with: name: ChromeExtension path: dist + - uses: montudor/action-zip@v0.1.0 + with: + args: zip -qq -r ./builds/ChromeExtension.zip ./dist # Create Firefox artifacts - name: Create Firefox artifacts @@ -31,6 +34,9 @@ jobs: with: name: FirefoxExtension path: dist + - uses: montudor/action-zip@v0.1.0 + with: + args: zip -qq -r ./builds/FirefoxExtension.zip ./dist # Create Beta artifacts (Builds with the name changed to beta) - name: Create Chrome Beta artifacts @@ -39,10 +45,17 @@ jobs: with: name: ChromeExtensionBeta path: dist + - uses: montudor/action-zip@v0.1.0 + with: + args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist + - name: Create Firefox Beta artifacts run: npm run build:firefox -- --env.stream=beta - uses: actions/upload-artifact@v1 with: name: FirefoxExtensionBeta path: dist + - uses: montudor/action-zip@v0.1.0 + with: + args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..92759e03 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Upload Release Build + +on: release + +jobs: + + build: + name: Upload Release + runs-on: ubuntu-latest + + steps: + # Build Artifacts + - name: Build Artifacts + - uses: ./.github/workflows/ci + + # Upload each release asset + - name: Upload to release + uses: JasonEtco/upload-to-release@master + with: + args: ./builds/ChromeExtension.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to release + uses: JasonEtco/upload-to-release@master + with: + args: ./builds/FirefoxExtension.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +