v0.2.18 🌻 #38
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: publish-build | |
on: | |
release: | |
types: [released] | |
jobs: | |
build-project: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node and cache | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "yarn" | |
cache-dependency-path: yarn.lock | |
- name: Check release validity | |
run: sh .github/scripts/check-release.sh | |
- name: Install project dependencies | |
run: yarn install | |
- name: Build project | |
run: yarn build | |
- name: Create ZIP folder | |
uses: thedoctor0/zip-release@master | |
with: | |
filename: 'build.zip' | |
directory: 'build' | |
- name: Upload build to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/build.zip | |
tag: ${{ github.ref }} |