Build and Zip Extension #15
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 Zip Extension | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
timeout-minutes: 15 | |
runs-on: windows-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Zip the build folder | |
run: | | |
powershell Compress-Archive -Path dist\* -DestinationPath better-studres.zip | |
- name: Upload extension artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: better-studres | |
path: better-studres.zip |