-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 955 Bytes
/
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
name: 'Release'
on:
release:
types: [published]
jobs:
release:
name: Prepare release
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Build
- name: Build the file
run: |
rm -rf /home/runner/work/platinum-weather-card-es/platinum-weather-card-es/node_modules
cd /home/runner/work/platinum-weather-card-es/platinum-weather-card-es
npm install
npm run build
ls -R /home/runner/work/platinum-weather-card/platinum-weather-card-es/dist
# Upload build file to the releas as an asset.
- name: Upload javascript to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/platinum-weather-card-es/platinum-weather-card-es/dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true