-
Notifications
You must be signed in to change notification settings - Fork 80
48 lines (47 loc) · 1.3 KB
/
release.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
37
38
39
40
41
42
43
44
45
46
47
48
name: Release rikaikun
on:
workflow_dispatch:
inputs:
dryRun:
description: '-d skips prepare and publish steps'
required: false
default: ''
push:
branches:
- 'main'
paths:
- 'extension/data/*'
- '!extension/data/deinflect.dat'
jobs:
release:
name: Release rikaikun
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4.0.1
with:
node-version: lts/*
- name: Install Japanese Fonts
run: |
sudo apt-get update
sudo apt-get install fonts-noto-cjk
- name: Install dependencies and build
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
run: npx semantic-release ${{ github.event.inputs.dryRun}}
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: extension_package
path: rikaikun.zip