Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create build.yml #20

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get version
uses: notiz-dev/github-action-json-property@release
id: version
with:
path: 'pbiviz.json'
prop_path: 'visual.version'
- run: echo ${{steps.version.outputs.prop}}
- name: build visual
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install powerbi-visuals-tools
- run: npm run package
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: latest version
path: |
dist/multistackedchartsmulticat3A8101158FC14988B45B304F265A2203.${{steps.version.outputs.prop}}.pbiviz
env:
CI: true