Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mzieniukbw committed May 18, 2024
1 parent 642e674 commit af9c10c
Showing 1 changed file with 69 additions and 68 deletions.
137 changes: 69 additions & 68 deletions .github/workflows/build-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ jobs:
run: npm ci
working-directory: browser-source/

- name: Build
run: npm run dist
working-directory: browser-source/apps/browser
# - name: Build
# run: npm run dist
# working-directory: browser-source/apps/browser

- name: Build Manifest v3
run: npm run dist:mv3
working-directory: browser-source/apps/browser
# - name: Build Manifest v3
# run: npm run dist:mv3
# working-directory: browser-source/apps/browser

- name: Build Chrome Manifest v3 Beta
run: npm run dist:chrome:beta
Expand All @@ -174,7 +174,7 @@ jobs:
unzip dist-chrome-mv3-beta.zip -d dist-chrome-mv3-beta
mv dist-chrome-mv3-beta/manifest.json dist-chrome-mv3-beta/manifest-beta.json
jq '. + {"update_url":"https://victorious-dune-09d94a803.5.azurestaticapps.net/manifest.xml"}' dist-chrome-mv3-beta/manifest-beta.json > dist-chrome-mv3-beta/manifest.json
echo "${{ secrets.SELF_HOSTED_PRIVATE_KEY }}"" > self-hosted.pem
echo "${{ secrets.SELF_HOSTED_PRIVATE_KEY }}" > self-hosted.pem
$(which chromium-browser) --pack-extension=dist-chrome-mv3-beta --pack-extension-key=self-hosted.pem
rm -f self-hosted.pem
rm -rf dist-chrome-mv3-beta
Expand All @@ -196,83 +196,84 @@ jobs:
output_location: ""
skip_app_build: true

- name: Gulp
run: gulp ci
working-directory: browser-source/apps/browser
# - name: Gulp
# run: gulp ci
# working-directory: browser-source/apps/browser

- name: Upload Opera artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: dist-opera-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/dist/dist-opera.zip
if-no-files-found: error

# - name: Upload Opera MV3 artifact
# uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# - name: Upload Opera artifact
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: dist-opera-MV3-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-opera-mv3.zip
# name: dist-opera-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-opera.zip
# if-no-files-found: error

- name: Upload Chrome artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: dist-chrome-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/dist/dist-chrome.zip
if-no-files-found: error
# # - name: Upload Opera MV3 artifact
# # uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# # with:
# # name: dist-opera-MV3-${{ env._BUILD_NUMBER }}.zip
# # path: browser-source/apps/browser/dist/dist-opera-mv3.zip
# # if-no-files-found: error

- name: Upload Chrome MV3 artifact (DO NOT USE FOR PROD)
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: DO-NOT-USE-FOR-PROD-dist-chrome-MV3-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/dist/dist-chrome-mv3.zip
if-no-files-found: error
# - name: Upload Chrome artifact
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: dist-chrome-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-chrome.zip
# if-no-files-found: error

- name: Upload Chrome MV3 Beta artifact (DO NOT USE FOR PROD)
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: DO-NOT-USE-FOR-PROD-dist-chrome-MV3-beta-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/dist/dist-chrome-mv3-beta.zip
if-no-files-found: error
# - name: Upload Chrome MV3 artifact (DO NOT USE FOR PROD)
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: DO-NOT-USE-FOR-PROD-dist-chrome-MV3-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-chrome-mv3.zip
# if-no-files-found: error

- name: Upload Firefox artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: dist-firefox-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/dist/dist-firefox.zip
if-no-files-found: error
# - name: Upload Chrome MV3 Beta artifact (DO NOT USE FOR PROD)
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: DO-NOT-USE-FOR-PROD-dist-chrome-MV3-beta-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-chrome-mv3-beta.zip
# if-no-files-found: error

- name: Upload Edge artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: dist-edge-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/dist/dist-edge.zip
if-no-files-found: error
# - name: Upload Firefox artifact
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: dist-firefox-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-firefox.zip
# if-no-files-found: error

# - name: Upload Edge MV3 artifact
# uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# - name: Upload Edge artifact
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: dist-edge-MV3-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-edge-mv3.zip
# name: dist-edge-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/dist/dist-edge.zip
# if-no-files-found: error

- name: Upload browser source
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: browser-source-${{ env._BUILD_NUMBER }}.zip
path: browser-source.zip
if-no-files-found: error
# # - name: Upload Edge MV3 artifact
# # uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# # with:
# # name: dist-edge-MV3-${{ env._BUILD_NUMBER }}.zip
# # path: browser-source/apps/browser/dist/dist-edge-mv3.zip
# # if-no-files-found: error

- name: Upload coverage artifact
if: false
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: coverage-${{ env._BUILD_NUMBER }}.zip
path: browser-source/apps/browser/coverage/coverage-${{ env._BUILD_NUMBER }}.zip
if-no-files-found: error
# - name: Upload browser source
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: browser-source-${{ env._BUILD_NUMBER }}.zip
# path: browser-source.zip
# if-no-files-found: error

# - name: Upload coverage artifact
# if: false
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: coverage-${{ env._BUILD_NUMBER }}.zip
# path: browser-source/apps/browser/coverage/coverage-${{ env._BUILD_NUMBER }}.zip
# if-no-files-found: error

build-safari:
name: Build Safari
if: false
runs-on: macos-13
needs:
- setup
Expand Down

0 comments on commit af9c10c

Please sign in to comment.