Skip to content

Commit

Permalink
Added chrome to publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
OhMyGuus committed Jan 1, 2024
1 parent d9fe969 commit 3c75e77
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "V*.*.*"

jobs:
build:
release-chrome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -30,11 +30,37 @@ jobs:
name: ISDCAC-chrome
path: ./src/*

- name: Upload & release
uses: mnao305/[email protected]
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
Expand Down Expand Up @@ -88,6 +114,5 @@ jobs:
with:
draft: true
files: |
ISDCAC-chrome-source.zip
ISDCAC-firefox-source.zip
istilldontcareaboutcookies-*.xpi

0 comments on commit 3c75e77

Please sign in to comment.