Skip to content

Commit 33ecabf

Browse files
committed
fix: modified actions by adding upload and download artifact actions
1 parent 48fb7a6 commit 33ecabf

File tree

23 files changed

+33
-2653
lines changed

23 files changed

+33
-2653
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,34 @@ on:
33
push:
44
branches:
55
- master
6+
- sre/fixes
67
jobs:
8+
build:
9+
name: Build and upload
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Build
23+
run: npm run build-ts
24+
- name: Upload dist
25+
uses: actions/upload-artifact@v3
26+
with:
27+
name: dist
28+
path: dist
29+
730
release:
8-
name: Release
31+
name: Download dist and release
932
runs-on: ubuntu-latest
33+
needs: build
1034
steps:
1135
- name: Checkout
1236
uses: actions/checkout@v2
@@ -18,6 +42,11 @@ jobs:
1842
node-version: 12
1943
- name: Install dependencies
2044
run: npm install
45+
- name: Download dist
46+
uses: actions/download-artifact@v3
47+
with:
48+
name: dist
49+
run: ls dist
2150
- name: Release
2251
env:
2352
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ test-report.html
2323
example/**/*
2424
!example/config.js
2525
!example/index.js
26+
27+
dist/
28+
dist/*

dist/api.js

Lines changed: 0 additions & 104 deletions
This file was deleted.

dist/config.js

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)