-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed the workflow to use a different upload mechanism
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |