aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/extension.yml
blob: b46d204d1f08898c43f79b111506d694377acaea (plain) (blame)
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
name: Extension Release Build

on:
  push:
    tags:
      - 'extension/v[0-9]+.[0-9]+.[0-9]+'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Setup repo
        uses: actions/checkout@v4

      - name: Archive Repo
        run: |
          zip -r "${{ github.workspace }}/repo.zip" .;

      - name: Setup
        uses: ./tooling/github/setup

      - name: Build the extension
        working-directory: apps/browser-extension
        run: |
          pnpm run build;
          cd dist;
          zip -r "${{ github.workspace }}/extension.zip" *;

      - name: Upload Repo Archive
        uses: actions/upload-artifact@v4
        with:
          name: repo.zip
          path: ${{ github.workspace }}/repo.zip

      - name: Upload Extension Archive
        uses: actions/upload-artifact@v4
        with:
          name: extension.zip
          path: ${{ github.workspace }}/extension.zip