-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (59 loc) · 1.5 KB
/
build-and-upload-extension.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build extension and upload to blob
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "src/**.ts"
- "*.json"
- "rollup.config.mjs"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
lfs: true
- name: Node setup for extension build
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Build extension
run: |
mkdir -p ./dist
npm install
npm run build
- name: Produce build artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist
- name: Setup rclone
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: |
[minio]
type = s3
provider = Minio
env_auth = false
access_key_id = ${{ secrets.RCLONE_CONFIG_MINIO_ACCESS_KEY_ID }}
secret_access_key = ${{ secrets.RCLONE_CONFIG_MINIO_SECRET_ACCESS_KEY }}
endpoint = ${{ secrets.RCLONE_CONFIG_MINIO_ENDPOINT }}
region = us-east-1
disable_base64: true
# creds will expire around 2024-06-16
#- name: Azure login
# uses: azure/login@v1
# with:
# creds: ${{ secrets.PONYPLACE_BLOB_CREDS }}
- name: Upload to blob storage
run: |
rclone -c copy ./dist "minio:minimap"
#- name: Azure logout
# run: az logout
# if: always()