-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 891 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build
run: yarn vite build && tar -cvf dist.tar ./dist && xz -T0 dist.tar
# - name: Calculate tag name
# id: vars
# run: |
# if [[ $GITHUB_REF == refs/tags/v* ]]; then
# name=${GITHUB_REF:10}
# fi
# echo ::set-output name=val::$name
# echo tag=$name >> $GITHUB_OUTPUT
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist.tar.xz
file_glob: true
tag: ${{ github.ref }}
overwrite: true