mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 06:27:14 +03:00
Upload to release incrementally
This commit is contained in:
89
.github/workflows/release.yml
vendored
89
.github/workflows/release.yml
vendored
@@ -39,57 +39,9 @@ jobs:
|
|||||||
# Create Chrome artifacts
|
# Create Chrome artifacts
|
||||||
- name: Create Chrome artifacts
|
- name: Create Chrome artifacts
|
||||||
run: npm run build:chrome
|
run: npm run build:chrome
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ChromeExtension
|
|
||||||
path: dist
|
|
||||||
- run: mkdir ./builds
|
- run: mkdir ./builds
|
||||||
- name: Zip Artifacts
|
- name: Zip Artifacts
|
||||||
run: cd ./dist ; zip -r ../builds/ChromeExtension.zip *
|
run: cd ./dist ; zip -r ../builds/ChromeExtension.zip *
|
||||||
|
|
||||||
# Create Firefox artifacts
|
|
||||||
- name: Create Firefox artifacts
|
|
||||||
run: npm run build:firefox
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: FirefoxExtension
|
|
||||||
path: dist
|
|
||||||
- name: Zip Artifacts
|
|
||||||
run: cd ./dist ; zip -r ../builds/FirefoxExtension.zip *
|
|
||||||
|
|
||||||
# Create Beta artifacts (Builds with the name changed to beta)
|
|
||||||
- name: Create Chrome Beta artifacts
|
|
||||||
run: npm run build:chrome -- --env stream=beta
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ChromeExtensionBeta
|
|
||||||
path: dist
|
|
||||||
- name: Zip Artifacts
|
|
||||||
run: cd ./dist ; zip -r ../builds/ChromeExtensionBeta.zip *
|
|
||||||
|
|
||||||
|
|
||||||
# Create Safari artifacts
|
|
||||||
- name: Create Safari artifacts
|
|
||||||
run: npm run build:safari
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: SafariExtension
|
|
||||||
path: dist
|
|
||||||
- name: Zip Artifacts
|
|
||||||
run: cd ./dist ; zip -r ../builds/SafariExtension.zip *
|
|
||||||
# Create Edge artifacts
|
|
||||||
- name: Clear dist for Edge
|
|
||||||
run: rm -rf ./dist
|
|
||||||
- name: Create Edge artifacts
|
|
||||||
run: npm run build:edge
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: EdgeExtension
|
|
||||||
path: dist
|
|
||||||
- name: Zip Artifacts
|
|
||||||
run: cd ./dist ; zip -r ../builds/EdgeExtension.zip *
|
|
||||||
|
|
||||||
# Upload each release asset
|
|
||||||
- name: Upload ChromeExtension to release
|
- name: Upload ChromeExtension to release
|
||||||
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
||||||
with:
|
with:
|
||||||
@@ -97,13 +49,12 @@ jobs:
|
|||||||
name: ChromeExtension.zip
|
name: ChromeExtension.zip
|
||||||
path: ./builds/ChromeExtension.zip
|
path: ./builds/ChromeExtension.zip
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Upload ChromeExtensionBeta to release
|
|
||||||
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
# Create Firefox artifacts
|
||||||
with:
|
- name: Create Firefox artifacts
|
||||||
args: builds/ChromeExtensionBeta.zip
|
run: npm run build:firefox
|
||||||
name: ChromeExtensionBeta.zip
|
- name: Zip Artifacts
|
||||||
path: ./builds/ChromeExtensionBeta.zip
|
run: cd ./dist ; zip -r ../builds/FirefoxExtension.zip *
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Upload FirefoxExtension to release
|
- name: Upload FirefoxExtension to release
|
||||||
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
||||||
with:
|
with:
|
||||||
@@ -111,6 +62,26 @@ jobs:
|
|||||||
name: FirefoxExtension.zip
|
name: FirefoxExtension.zip
|
||||||
path: ./builds/FirefoxExtension.zip
|
path: ./builds/FirefoxExtension.zip
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Create Beta artifacts (Builds with the name changed to beta)
|
||||||
|
- name: Create Chrome Beta artifacts
|
||||||
|
run: npm run build:chrome -- --env stream=beta
|
||||||
|
- name: Zip Artifacts
|
||||||
|
run: cd ./dist ; zip -r ../builds/ChromeExtensionBeta.zip *
|
||||||
|
- name: Upload ChromeExtensionBeta to release
|
||||||
|
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
||||||
|
with:
|
||||||
|
args: builds/ChromeExtensionBeta.zip
|
||||||
|
name: ChromeExtensionBeta.zip
|
||||||
|
path: ./builds/ChromeExtensionBeta.zip
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
|
# Create Safari artifacts
|
||||||
|
- name: Create Safari artifacts
|
||||||
|
run: npm run build:safari
|
||||||
|
- name: Zip Artifacts
|
||||||
|
run: cd ./dist ; zip -r ../builds/SafariExtension.zip *
|
||||||
- name: Upload SafariExtension to release
|
- name: Upload SafariExtension to release
|
||||||
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
||||||
with:
|
with:
|
||||||
@@ -118,6 +89,14 @@ jobs:
|
|||||||
name: SafariExtension.zip
|
name: SafariExtension.zip
|
||||||
path: ./builds/SafariExtension.zip
|
path: ./builds/SafariExtension.zip
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Create Edge artifacts
|
||||||
|
- name: Clear dist for Edge
|
||||||
|
run: rm -rf ./dist
|
||||||
|
- name: Create Edge artifacts
|
||||||
|
run: npm run build:edge
|
||||||
|
- name: Zip Artifacts
|
||||||
|
run: cd ./dist ; zip -r ../builds/EdgeExtension.zip *
|
||||||
- name: Upload EdgeExtension to release
|
- name: Upload EdgeExtension to release
|
||||||
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user