Skip to content

Commit

Permalink
Meta improvements (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Apr 11, 2021
1 parent 2025a2d commit cca05bf
Show file tree
Hide file tree
Showing 5 changed files with 7,557 additions and 18,658 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
env: {}
env:
DIRECTORY: distribution

# DO NOT EDIT BELOW, USE: npx ghat fregante/ghatemplates/webext --set 'on.schedule=[{"cron": "22 14 * * 3"}]' --set 'jobs.Submit.strategy.matrix.command=["chrome"]'
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/webext
# SOURCE: https://github.com/fregante/ghatemplates
# OPTIONS: {"exclude":["on.schedule"],"set":["jobs.Submit.strategy.matrix.command=[\"chrome\"]"]}

name: Release
on:
workflow_dispatch: null
schedule:
- cron: 22 14 * * 3
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 @@ -23,10 +24,10 @@ jobs:
- uses: fregante/daily-version-action@v1
name: Create tag if necessary
id: daily-version
- uses: notlmn/release-with-changelog@v3
- uses: fregante/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 @@ -41,16 +42,20 @@ jobs:
- uses: actions/checkout@v2
- name: install
run: npm ci || npm install
- run: npm run build
- run: npm run build --if-present
- name: Update extension’s meta
run: >-
npx dot-json distribution/manifest.json version ${{
npx dot-json@1 $DIRECTORY/manifest.json version ${{
needs.Version.outputs.version }}
- run: 'npm run release:${{ matrix.command }}'
- name: Submit
run: |
case ${{ matrix.command }} in
chrome)
cd $DIRECTORY && npx chrome-webstore-upload-cli@1 upload --auto-publish
;;
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 }}
Loading

0 comments on commit cca05bf

Please sign in to comment.