aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml71
1 files changed, 35 insertions, 36 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 21108d7a..84839493 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,10 +12,10 @@ jobs:
steps:
# Initialization
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-node@v3
+ - uses: actions/setup-node@v4
with:
node-version: '18'
- name: Copy configuration
@@ -35,6 +35,19 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: npm ci
+
+ # Create Firefox artifacts
+ - name: Create Firefox artifacts
+ run: npm run build:firefox
+ - name: Zip Artifacts
+ run: cd ./dist ; zip -r ../builds/FirefoxExtension.zip *
+ - name: Upload FirefoxExtension to release
+ uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
+ with:
+ args: builds/FirefoxExtension.zip
+ name: FirefoxExtension.zip
+ path: ./builds/FirefoxExtension.zip
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
# Create Chrome artifacts
- name: Create Chrome artifacts
@@ -50,33 +63,21 @@ jobs:
path: ./builds/ChromeExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- # Create Firefox artifacts
- - name: Create Firefox artifacts
- run: npm run build:firefox
- - name: Zip Artifacts
- run: cd ./dist ; zip -r ../builds/FirefoxExtension.zip *
- - name: Upload FirefoxExtension to release
- uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
- with:
- args: builds/FirefoxExtension.zip
- name: FirefoxExtension.zip
- path: ./builds/FirefoxExtension.zip
- 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
+ # 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/ChromeExtensionBeta.zip *
- - name: Upload ChromeExtensionBeta to release
+ run: cd ./dist ; zip -r ../builds/EdgeExtension.zip *
+ - name: Upload EdgeExtension to release
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
with:
- args: builds/ChromeExtensionBeta.zip
- name: ChromeExtensionBeta.zip
- path: ./builds/ChromeExtensionBeta.zip
+ args: builds/EdgeExtension.zip
+ name: EdgeExtension.zip
+ path: ./builds/EdgeExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
-
# Create Safari artifacts
- name: Create Safari artifacts
run: npm run build:safari
@@ -90,25 +91,23 @@ jobs:
path: ./builds/SafariExtension.zip
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
+ # 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/EdgeExtension.zip *
- - name: Upload EdgeExtension to release
+ run: cd ./dist ; zip -r ../builds/ChromeExtensionBeta.zip *
+ - name: Upload ChromeExtensionBeta to release
uses: Shopify/upload-to-release@07611424e04f1475ddf550e1c0dd650b867d5467
with:
- args: builds/EdgeExtension.zip
- name: EdgeExtension.zip
- path: ./builds/EdgeExtension.zip
+ args: builds/ChromeExtensionBeta.zip
+ name: ChromeExtensionBeta.zip
+ path: ./builds/ChromeExtensionBeta.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Firefox Beta
- name: Create Firefox Beta artifacts
run: npm run build:firefox -- --env stream=beta
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: FirefoxExtensionBeta
path: dist
@@ -125,7 +124,7 @@ jobs:
run: sudo apt-get install rename
- name: Rename signed file
run: cd ./web-ext-artifacts ; rename 's/.*/FirefoxSignedInstaller.xpi/' *
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: FirefoxExtensionSigned.xpi
path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi