Skip to content

Commit c6ac1e2

Browse files
authored
Update distribute.yml
1 parent 98f9ca6 commit c6ac1e2

1 file changed

Lines changed: 29 additions & 26 deletions

File tree

.github/workflows/distribute.yml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,6 @@ env:
2626
REACT_APP_BUILD_TARGET: 'extension'
2727

2828
jobs:
29-
install-dependencies:
30-
needs: tag_version
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: actions/checkout@v2
34-
with:
35-
ref: master
36-
- uses: actions/cache@v2
37-
with:
38-
path: '**/node_modules'
39-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
40-
- name: Install yarn dependencies
41-
run: yarn
42-
- name: Build and zip the extension
43-
run: |
44-
echo version=${{ steps.tag_version.outputs.new_version }}
45-
if [ ${{github.event.inputs.targetStore}} == 'chrome' ] || [ ${{github.event.inputs.targetStore}} == 'all' ]; then
46-
yarn build-chrome
47-
fi
48-
if [ ${{github.event.inputs.targetStore}} == 'firefox' ] || [ ${{github.event.inputs.targetStore}} == 'all' ]; then
49-
yarn build-firefox
50-
fi
51-
5229
tag_version:
5330
runs-on: ubuntu-latest
5431
steps:
@@ -75,9 +52,22 @@ jobs:
7552

7653
chrome-deploy:
7754
if: ${{ (github.event.inputs.targetStore == 'chrome') || (github.event.inputs.targetStore == 'all') }}
78-
needs: install-dependencies
55+
needs: tag_version
7956
runs-on: ubuntu-latest
80-
steps:
57+
steps:
58+
- uses: actions/checkout@v2
59+
with:
60+
ref: master
61+
- uses: actions/cache@v2
62+
with:
63+
path: '**/node_modules'
64+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
65+
- name: Install yarn dependencies
66+
run: yarn
67+
68+
- name: Build and zip the extension
69+
run: yarn build-chrome
70+
8171
- name: Install chrome dependencies
8272
run: yarn global add chrome-webstore-upload-cli
8373

@@ -92,9 +82,22 @@ jobs:
9282

9383
firefox-deploy:
9484
if: ${{ (github.event.inputs.targetStore == 'firefox') || (github.event.inputs.targetStore == 'all') }}
95-
needs: install-dependencies
85+
needs: tag_version
9686
runs-on: ubuntu-latest
9787
steps:
88+
- uses: actions/checkout@v2
89+
with:
90+
ref: master
91+
- uses: actions/cache@v2
92+
with:
93+
path: '**/node_modules'
94+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
95+
- name: Install yarn dependencies
96+
run: yarn
97+
98+
- name: Build and zip the extension
99+
run: yarn build-firefox
100+
98101
- name: Install Firefox dependencies
99102
run: yarn global add web-ext web-ext-submit@6
100103

0 commit comments

Comments
 (0)