-
-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (28 loc) · 1021 Bytes
/
release.yml
File metadata and controls
32 lines (28 loc) · 1021 Bytes
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
name: 'Build & Publish'
on:
release:
types: [published]
jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- name: Checkout
# REPLACE <SHA_FOR_actions_checkout> with the 40-char commit SHA for actions/checkout you want to pin
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
# Build
- name: Build the file
run: |
cd /home/runner/work/compass-card/compass-card
npm ci
npm run build
# Upload build file to the release as an asset.
- name: Upload js to release
# REPLACE <SHA_FOR_svenstaro_upload_release_action> with the 40-char commit SHA to pin
uses: svenstaro/upload-release-action@dd2828236b4fa38af1eaebc4ef158b8a71078302
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/compass-card/compass-card/dist/compass-card.js
asset_name: compass-card.js
tag: ${{ github.ref }}
overwrite: true