From 953b36cfa195fe03f0dfb5583fb005f9c79e9f5c Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Tue, 2 Feb 2021 15:55:16 -0600 Subject: [PATCH] Meta: Update GHA workflows --- .github/workflows/ci.yml | 4 +++- .github/workflows/labeler.yml | 3 ++- .github/workflows/release.yml | 35 +++++++++++++++++++---------------- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31c854b..4d98c35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 7577846..688211f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32e721a..76dd4f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,9 @@ -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: @@ -8,8 +11,8 @@ on: 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 @@ -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 @@ -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 }}