forked from lukin/keywind
-
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (42 loc) · 1.41 KB
/
upload-assets.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
49
50
51
---
# https://github.com/google-github-actions/release-please-action#release-types-supported
on: # yamllint disable-line rule:truthy
push:
tags:
- 'v*.*.*'
name: 📤 Upload artifacts
jobs:
upload-artifacts:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ['ubuntu-22.04']
node: ['18']
steps:
- name: 📦 Check out the codebase
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: ⚙️ Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org/'
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install
- name: ♻️ Restore packages cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/.cache
${{ github.workspace }}/**/tsconfig.tsbuildinfo
key: ${{ runner.os }}-packages-cache-${{ hashFiles('**/pnpm*.yaml') }}
restore-keys: |
${{ runner.os }}-packages-cache-${{ hashFiles('**/pnpm*.yaml') }}
- name: 🚀 Generate dist files
run: pnpm build:jar
- name: 📤 Upload release assets
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./out/keywind.jar"]'