-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.49 KB
/
publish.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
46
47
48
49
50
51
name: Publish via ftp
on: workflow_dispatch
jobs:
build:
name: Create artifacts from master
runs-on: ubuntu-latest
strategy:
matrix:
include:
- public_url: gallery # wf
data_folder: data
- public_url: galleryNAC # nac
data_folder: dataNAC
- public_url: galleryNERC # nerc
data_folder: dataNERC
- public_url: galleryLAC # lac
data_folder: dataLAC
- public_url: galleryAE # ae
data_folder: dataAE
- public_url: galleryAW # aw
data_folder: dataAW
- public_url: galleryAP # ap
data_folder: dataAP
- public_url: galleryEU # eu
data_folder: dataEU
- public_url: galleryACPC # acpc
data_folder: dataACPC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16"
cache: "npm"
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Build
run: PUBLIC_URL=${{ matrix.public_url }} VITE_DATA_FOLDER=${{ matrix.data_folder }} ./build.sh
- name: Upload to ftp
uses: SamKirkland/[email protected]
with:
server: ftp.u.icpc.global
port: 21
protocol: ftps
username: [email protected]
password: ${{ secrets.ftp_password }}
local-dir: ${{ matrix.public_url }}/
server-dir: ${{ matrix.public_url }}/