Skip to content

0.0.2

0.0.2 #6

Workflow file for this run

name: Build Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ''
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Zip dist
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
FILE_NAME=autopcr_web_vue-release_${TAG_NAME}.zip
echo "filename=${FILE_NAME}" >> $GITHUB_ENV
cd dist && zip -r ../${FILE_NAME}.zip .
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.FILE_NAME }}