-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (41 loc) · 1.15 KB
/
upload-github-releases.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
name: Upload to GitHub Release
on:
push:
tags:
- 'v*.*.*'
env:
NODE_VERSION: '14.x'
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache Dependencies
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Install Dependencies
uses: pnpm/[email protected]
with:
version: 5.18.9
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Build
run: pnpm build
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/cf-download-proxy.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}