-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (47 loc) · 1.39 KB
/
Copy pathdispatch.yaml
File metadata and controls
54 lines (47 loc) · 1.39 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Dispatch
on:
workflow_dispatch:
inputs:
fileKey:
description: Figma File key
type: string
required: true
ids:
description: Stringified array of ids to export
type: string
default: '[]'
required: true
jobs:
export:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Figma Export PDFs 🦾
id: figmaExportPdfs
uses: ./
with:
accessToken: ${{ secrets.FIGMA_ACCESS_TOKEN }}
fileKey: ${{ github.event.inputs.fileKey }}
ids: ${{ github.event.inputs.ids }}
- name: Log ℹ️
run: |
echo "Results"
echo "pdfs: $pdfs"
echo "outDir: $outDir"
env:
pdfs: ${{ steps.figmaExportPdfs.outputs.pdfs }}
outDir: ${{ steps.figmaExportPdfs.outputs.outDir }}
- name: Upload artifact 📂
uses: actions/upload-artifact@v4
with:
name: my-pdfs
path: ${{ steps.figmaExportPdfs.outputs.outDir }}
- name: FTP Upload 📂
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ${{ steps.figmaExportPdfs.outputs.outDir }}
server-dir: ./pdf-test/