-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.22 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
---
name: Upload Figma Plugin/Widget to release page
on:
release:
types: [published]
jobs:
init:
uses: ./.github/workflows/00-init.yml
publish:
name: Upload Figma Plugin/Widget to release page
runs-on: ubuntu-latest
needs: [init]
strategy:
fail-fast: false
matrix:
package: [handover]
permissions:
id-token: write
contents: write
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
- name: 🔄 Init Cache
uses: ./.github/actions/npm-cache
- name: 🔨 Build Packages
run: npm run build:${{ matrix.package }}
- name: ⏫ Upload Release Assets
id: upload-release-asset
uses: actions/github-script@v7
env:
ICON_RELEASE_ID: ${{ vars.ICON_RELEASE_ID }}
with:
result-encoding: json
script: |
const { default: release } = await import('${{ github.workspace }}/.github/scripts/release/index.js');
const workspace = '${{ github.workspace }}';
const zipName = '${{ matrix.package }}';
const srcDir = 'packages/${{ matrix.package }}';
return await release({github, context, workspace, zipName, srcDir})