-
-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (43 loc) · 1.23 KB
/
deploy.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
name: Deploy
on:
push:
tags:
- '*'
workflow_dispatch:
branches:
- main
env:
# See: https://github.com/actions/setup-node/#readme
NODE_VERSION: '18.17'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Test
run: xvfb-run yarn test-all
- name: Package
run: yarn package
- name: Upload VS Code Extension [GitHub Actions]
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: build-artifacts/
- name: Upload VS Code Extension [S3]
uses: docker://plugins/s3
env:
PLUGIN_SOURCE: 'build-artifacts/*'
PLUGIN_STRIP_PREFIX: 'build-artifacts/'
PLUGIN_TARGET: '/vscode-arduino-tools'
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}