-
Notifications
You must be signed in to change notification settings - Fork 129
55 lines (50 loc) · 1.43 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release
concurrency:
group: ${{ github.event.repository.name }}-deploy
cancel-in-progress: true
on:
workflow_call:
inputs:
ref:
description: 'Git commit to release'
required: false
type: string
workflow_dispatch:
push:
branches:
- main
jobs:
continuous-integration:
uses: ./.github/workflows/continuous-integration.yml
name: continuous integration
with:
ref: ${{ inputs.ref }}
upload-packages:
needs: continuous-integration
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Cache the node_modules dir
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn install --immutable
- name: Fetch packages
uses: actions/download-artifact@v4
with:
name: packages
path: dist/
- name: Upload packages
env:
CHROME_WEBSTORE_CLIENT_ID: ${{ secrets.CHROME_WEBSTORE_CLIENT_ID }}
CHROME_WEBSTORE_CLIENT_SECRET: ${{ secrets.CHROME_WEBSTORE_CLIENT_SECRET }}
CHROME_WEBSTORE_REFRESH_TOKEN: ${{ secrets.CHROME_WEBSTORE_REFRESH_TOKEN }}
FIREFOX_AMO_KEY: ${{ secrets.FIREFOX_AMO_KEY }}
FIREFOX_AMO_SECRET: ${{ secrets.FIREFOX_AMO_SECRET }}
run: tools/deploy