-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 1.21 KB
/
deliver-icons-to-spark-web.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
name: 📤 Deliver icons to Adevinta/spark
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "assets/spark/icons/*"
jobs:
deliver_icons_to_spark_web:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/Hydrogen
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Build Tokens
run: npm run build
- name: Deliver Icons To Spark Web
uses: cpina/[email protected]
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY_SPARK_WEB }}
with:
source-directory: build/web/dist/spark/icons
destination-github-username: "adevinta"
destination-repository-name: "polaris-web-icons"
user-email: ${{ secrets.API_GITHUB_COMMIT_EMAIL_WEB }}
commit-message: |
chore(icons): update icons
See ORIGIN_COMMIT from $GITHUB_REF
target-branch: chore-updated-icons
create-target-branch-if-needed: true
target-directory: "packages/components/icons/assets"