Merge pull request #132 from adevinta/add-call-filled-icons #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |