Skip to content

Commit

Permalink
ACTIONS-UPGRADE Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai committed Jan 30, 2024
1 parent 38216ea commit 8c7fdb9
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ steps:
- uses: actions/checkout@v2
with:
fetch-depth: 20
- run: yarn install
- run: yarn test
- uses: fregante/daily-version-action@v2
name: Create tag if necessary
id: daily-version
# - name: Created?
# if: steps.version.outputs.created
# runs: echo "Created ${{ steps.version.outputs.version }}"
- if: steps.daily-version.outputs.created
name: Create release
env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ steps.daily-version.outputs.version }}"
- run: yarn install
- run: yarn test
- uses: fregante/daily-version-action@v2
name: Create tag if necessary
id: daily-version
# - name: Created?
# if: steps.version.outputs.created
# runs: echo "Created ${{ steps.version.outputs.version }}"
- if: steps.daily-version.outputs.created
name: Create release
env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ steps.daily-version.outputs.version }}"

Build-and-upload-artifacts:
needs: Version
Expand All @@ -39,26 +39,26 @@ strategy:
node-version: [18.x]
command:
- firefox
- chrome
- chrome
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
- name: yarn install, build, and test
run: |
yarn build
yarn test
- name: Update extension’s meta
env:
- name: Update extension’s meta
env:
VER: ${{ needs.Version.outputs.version }}
run: |
run: |
yarn update-version:${{ matrix.command }}
- uses: actions/upload-artifact@v2
with:
- uses: actions/upload-artifact@v2
with:
path: distribution

Submit:
Expand All @@ -69,23 +69,23 @@ strategy:
matrix:
command:
- firefox
- chrome
- chrome
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn build
- name: Update extension’s meta
env:
VER: ${{ needs.Version.outputs.version }}
run: |
yarn update-version:${{ matrix.command }}
- run: yarn release:${{ matrix.command }}
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 }}'
WEB_EXT_ID: '${{ secrets.WEB_EXT_ID }}'
- run: yarn install
- run: yarn build
- name: Update extension’s meta
env:
VER: ${{ needs.Version.outputs.version }}
run: |
yarn update-version:${{ matrix.command }}
- run: yarn release:${{ matrix.command }}
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 }}'
WEB_EXT_ID: '${{ secrets.WEB_EXT_ID }}'

0 comments on commit 8c7fdb9

Please sign in to comment.