Skip to content

Commit

Permalink
Auto-upload card.js to release
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Oct 6, 2021
1 parent 3af209e commit 7bae317
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Add card file to release
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: card.js
asset_name: card.js
tag: ${{ github.ref }}

- name: Purge jsDelivr cache
if: startsWith(github.ref, 'refs/tags/')
run: curl https://purge.jsdelivr.net/npm/rgb-light-card

0 comments on commit 7bae317

Please sign in to comment.