From 3c75e776642d82a5577b5fc86905a7745b241026 Mon Sep 17 00:00:00 2001 From: Guus van der Meer Date: Mon, 1 Jan 2024 19:27:34 +0100 Subject: [PATCH] Added chrome to publish action --- .github/workflows/release.yml | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3565d323..bb410fb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: - "V*.*.*" jobs: - build: + release-chrome: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -30,11 +30,37 @@ jobs: name: ISDCAC-chrome path: ./src/* + - name: Upload & release + uses: mnao305/chrome-extension-upload@v4.0.1 + with: + file-path: ISDCAC-chrome-source.zip + extension-id: hogefuga(extension id) + client-id: ${{ secrets.CHROME_CLIENT_ID }} + client-secret: ${{ secrets.CHROME_CLIENT_SECRET }} + refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }} + + - name: "Create Release" + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: true + files: | + ISDCAC-chrome-source.zip + + release-firefox: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Move to manifest v2 run: | - rm src/manifest.json cp src/manifest_v2.json src/manifest.json + - name: Clear hotreload + run: | + echo "" > src/data/hotreload.js + - name: "web-ext build" id: web-ext-build uses: kewisch/action-web-ext@v1 @@ -88,6 +114,5 @@ jobs: with: draft: true files: | - ISDCAC-chrome-source.zip ISDCAC-firefox-source.zip istilldontcareaboutcookies-*.xpi