forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.16 KB
/
Copy pathonboarding_figma_sync.yml
File metadata and controls
40 lines (31 loc) · 1.16 KB
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
name: Sync macOS onboarding to Figma source
on:
workflow_dispatch:
permissions:
contents: write
concurrency:
group: onboarding-figma-sync
cancel-in-progress: true
jobs:
publish:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Ensure scripts are executable
run: chmod +x scripts/export_onboarding_sync_bundle.sh scripts/prepare_onboarding_sync_bundle.sh scripts/publish_onboarding_sync_branch.sh
- name: Export onboarding sync bundle
env:
SOURCE_COMMIT: ${{ github.sha }}
SOURCE_BRANCH: ${{ github.ref_name }}
run: scripts/export_onboarding_sync_bundle.sh "$RUNNER_TEMP/onboarding-sync-bundle" "$SOURCE_COMMIT" "$SOURCE_BRANCH"
- name: Upload bundle artifact
uses: actions/upload-artifact@v7
with:
name: onboarding-sync-bundle
path: ${{ runner.temp }}/onboarding-sync-bundle
- name: Publish bundle branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: scripts/publish_onboarding_sync_branch.sh "$RUNNER_TEMP/onboarding-sync-bundle"