Skip to content

Commit

Permalink
Meta: Update GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 3, 2021
1 parent f2e1dcd commit 953b36c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
env: {}

# DO NOT EDIT BELOW, USE: npx ghat fregante/ghatemplates/node --exclude 'jobs.Build' --exclude 'jobs.Test'
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/node
# SOURCE: https://github.com/fregante/ghatemplates
# OPTIONS: {"exclude":["jobs.Build","jobs.Test"]}

name: CI
on:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
env: {}

# DO NOT EDIT BELOW, USE: npx ghat fregante/title-to-labels-action/workflow
# FILE GENERATED WITH: npx ghat fregante/title-to-labels-action/workflow
# SOURCE: https://github.com/fregante/title-to-labels-action

name: Labeler

Expand Down
35 changes: 19 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
env: {}
env:
DIRECTORY: browser

# DO NOT EDIT BELOW, USE: npx ghat 'fregante/ghatemplates/webext/release.yml' --exclude 'on.schedule'
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/webext/release.yml
# SOURCE: https://github.com/fregante/ghatemplates
# OPTIONS: {"exclude":["on.schedule"]}

name: Release
on:
workflow_dispatch: null
jobs:
Version:
outputs:
created: '${{ steps.daily-version.outputs.created }}'
version: '${{ steps.daily-version.outputs.version }}'
created: ${{ steps.daily-version.outputs.created }}
version: ${{ steps.daily-version.outputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -24,7 +27,7 @@ jobs:
- uses: notlmn/release-with-changelog@v3
if: steps.daily-version.outputs.created
with:
token: '${{ secrets.GITHUB_TOKEN }}'
token: ${{ secrets.GITHUB_TOKEN }}
exclude: true
Submit:
needs: Version
Expand All @@ -43,22 +46,22 @@ jobs:
- run: npm run build --if-present
- name: Update extension’s meta
run: >-
npx dot-json browser/manifest.json version ${{
npx dot-json@1 $DIRECTORY/manifest.json version ${{
needs.Version.outputs.version }}
- run: >-
- name: Submit
run: |
case ${{ matrix.command }} in
chrome)
cd browser && npx chrome-webstore-upload-cli@1 upload --auto-publish
cd $DIRECTORY && npx chrome-webstore-upload-cli@1 upload --auto-publish
;;
firefox)
cd browser && npx web-ext-submit@5
cd $DIRECTORY && npx web-ext-submit@5
;;
esac
env:
EXTENSION_ID: '${{ secrets.EXTENSION_ID }}'
CLIENT_ID: '${{ secrets.CLIENT_ID }}'
CLIENT_SECRET: '${{ secrets.CLIENT_SECRET }}'
REFRESH_TOKEN: '${{ secrets.REFRESH_TOKEN }}'
WEB_EXT_API_KEY: '${{ secrets.WEB_EXT_API_KEY }}'
WEB_EXT_API_SECRET: '${{ secrets.WEB_EXT_API_SECRET }}'
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}

0 comments on commit 953b36c

Please sign in to comment.