-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (33 loc) · 1011 Bytes
/
deploy-test.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
name: Project build and deploy test
on:
push:
branches:
- main
jobs:
deploy-test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node: [18]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: examples/hello-world/hello-world-project
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Rename project
run: |
sed -i 's/hello-world-project/hello-world-project-os-${{ matrix.os }}-node-${{ matrix.node }}/g' hsproject.json
echo ""
echo "After rename"
cat hsproject.json
- name: Build and deploy
env:
HUBSPOT_PORTAL_ID: ${{ secrets.hubspot_portal_id }}
HUBSPOT_PERSONAL_ACCESS_KEY: ${{ secrets.hubspot_personal_access_key }}
run: |
npx --yes --package=@hubspot/cli@latest --call='hs project upload . --use-env'