diff options
author | Ajay Ramachandran <[email protected]> | 2020-02-20 12:14:01 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-02-20 12:14:01 -0500 |
commit | b629b7d333bafc3ada3d24c64f169b2ed8ca8b4f (patch) | |
tree | c56cdc1cbc909d3e5924f82affb077a382b6e6d2 /.github | |
parent | 514a8b62d6539713e62f59e9a6844b168e105771 (diff) | |
download | SponsorBlock-b629b7d333bafc3ada3d24c64f169b2ed8ca8b4f.tar.gz SponsorBlock-b629b7d333bafc3ada3d24c64f169b2ed8ca8b4f.zip |
Added basic release workflow
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 13 | ||||
-rw-r--r-- | .github/workflows/release.yml | 29 |
2 files changed, 42 insertions, 0 deletions
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/[email protected] + 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/[email protected] + 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/[email protected] + 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/[email protected] + 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 }} + |