forked from AUS-DOH-Safety-and-Quality/PowerBI-SPC
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.03 KB
/
push_to_release.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: "Build release"
on:
workflow_dispatch:
jobs:
build-pbiviz-packages:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Use Node.js 10.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Label visuals as 'Development'
run: |
sed -i 's/"name":"PBISPC"/"name":"PBISPC_DEV"/g' pbiviz.json
sed -i 's/"displayName":"SPC Charts"/"displayName":"SPC Charts (Dev)"/g' pbiviz.json
sed -i 's/"guid":"PBISPC"/"guid":"PBISPC_DEV"/g' pbiviz.json
shell: bash
- name: Build
run: |
npm install
npm install -g powerbi-visuals-tools
pbiviz package
- name : "Create Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Development Build"
files: dist/*.pbiviz