Skip to content

Commit

Permalink
Fixing the workflows
Browse files Browse the repository at this point in the history
- Changed the workflow to use a different upload mechanism
  • Loading branch information
amura11 committed Jul 11, 2023
1 parent 07ce14b commit ad2274d
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@ on:

jobs:
release:
name: Prepare release
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Checkout the repository"
uses: "actions/[email protected]"

# Build
- name: Build the file
- name: "Build the plugin"
shell: "bash"
run: |
cd /home/runner/work/ha-selector-keypad/ha-selector-keypad
cd "${{ github.workspace }}"
npm install
npm run build
# Upload build file to the release as an asset.
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release

- name: "Upload the compiled plugin"
uses: "softprops/[email protected]"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/ha-selector-keypad/ha-selector-keypad/dist/ha-selector-keypad.js
asset_name: ha-selector-keypad.js
tag: ${{ github.ref }}
overwrite: true
files: ${{ github.workspace }}/dist/ha-selector-keypad.js

0 comments on commit ad2274d

Please sign in to comment.