Skip to content

Commit

Permalink
Adjust actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed May 30, 2023
1 parent 07a4cbc commit b2c9e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/setup-node@v3
with:
node-version: 14

- name: Build
run: |
npm install
npm run build
- name: Archive built file
uses: actions/upload-artifact@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:

- name: Build the file
run: |
cd /home/runner/work/lovelace-xiaomi-vacuum-map-card/lovelace-xiaomi-vacuum-map-card
npm install
npm run build
Expand All @@ -26,7 +25,7 @@ jobs:

with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/lovelace-xiaomi-vacuum-map-card/lovelace-xiaomi-vacuum-map-card/dist/xiaomi-vacuum-map-card.js
file: dist/xiaomi-vacuum-map-card.js
asset_name: xiaomi-vacuum-map-card.js
tag: ${{ github.ref }}
overwrite: true

0 comments on commit b2c9e90

Please sign in to comment.