Skip to content

Commit fe8ff20

Browse files
authored
adds action to publish to azure storage
1 parent 5d75e75 commit fe8ff20

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎.github/workflows/nodejs.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [8.x, 10.x, 12.x]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: npm install, build, and test
21+
run: |
22+
npm ci
23+
npm run build --if-present
24+
npm test
25+
env:
26+
CI: true
27+
- name: Azure Blob Storage Upload
28+
uses: bacongobbler/azure-blob-storage-upload@v1.0.0
29+
with:
30+
# The name of the directory you want to upload
31+
source_dir: dist
32+
# The name of the storage account container these assets will be uploaded to
33+
container_name: powerbijs
34+
# The connection string for the storage account
35+
connection_string: ${{ secrets.ConnectionString }}

0 commit comments

Comments
 (0)