Merge pull request #8 from OrionReed/hue-selectors #4
Workflow file for this run
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
name: Build and Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: yarn install | |
- name: Build project | |
run: yarn build | |
- name: Prepare releases | |
run: | | |
cd dist | |
for dir in */ ; do | |
zip -r "${dir%/}.zip" "$dir" | |
done | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "dist/*.zip" |