forked from mapbox/mapboxgl-powerbi
-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (55 loc) · 2.1 KB
/
github-actions.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
51
52
53
54
55
name: Build and deploy to Releases
on:
push:
branches:
- master
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
env:
major_version: 1
minor_version: 7
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "{MAJOR_VERSION}"
replace: "${{ env.major_version }}"
include: "pbiviz.json" # Will match all README.md files in any nested directory
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "{MINOR_VERSION}"
replace: "${{ env.minor_version }}"
include: "pbiviz.json" # Will match all README.md files in any nested directory
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: "{GITHUB_RUN_NUMBER}"
replace: "${{ github.run_number }}"
include: "pbiviz.json" # Will match all README.md files in any nested directory
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm install
- run: npm run package
- name: List files in the repository
run: |
ls ${{ github.workspace }}/dist
- run: |
cat pbiviz.json
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.major_version }}.${{ env.minor_version }}.${{ github.run_number }}
files: |
dist/PBI*.pbiviz
- run: echo "🍏 This job's status is ${{ job.status }}."