Skip to content

Commit

Permalink
Add extension workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Jan 12, 2024
1 parent 53281ce commit 1d9e7bd
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,43 @@ jobs:
run: |
security delete-keychain build.keychain
rm ${{ github.workspace }}/AuthKey.p8
extension-build:
name: extension-build
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout to git repository
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20.7.0

- name: Enable Corepack
run: |
corepack enable
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Run install
uses: borales/actions-yarn@v4
env:
REACT_APP_AMPLITUDE: ${{ secrets.REACT_APP_AMPLITUDE_EXTENSION }}
with:
cmd: build:extension

- name: Upload apps to artifacts
uses: actions/upload-artifact@v4
with:
name: Tonkeeper Extensions
retention-days: 10
compression-level: 0
path: |
${{ github.workspace }}/apps/extension/dist/tonkeeper_chrome_*.zip
${{ github.workspace }}/apps/extension/dist/tonkeeper_firefix_*.zip
42 changes: 42 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,45 @@ jobs:
run: |
security delete-keychain build.keychain
rm ${{ github.workspace }}/AuthKey.p8
extension-build:
name: extension-build
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout to git repository
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20.7.0

- name: Enable Corepack
run: |
corepack enable
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Run install
uses: borales/actions-yarn@v4
env:
REACT_APP_AMPLITUDE: ${{ secrets.REACT_APP_AMPLITUDE_EXTENSION }}
with:
cmd: build:extension

- name: Upload apps to artifacts
uses: actions/upload-artifact@v4
with:
name: Tonkeeper Extensions
retention-days: 10
compression-level: 0
path: |
${{ github.workspace }}/apps/extension/dist/tonkeeper_chrome_beta_*.zip
${{ github.workspace }}/apps/extension/dist/tonkeeper_firefix_*.zip

0 comments on commit 1d9e7bd

Please sign in to comment.