-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.25 KB
/
build_pkcli.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
52
53
54
55
name: Build PkCli
permissions:
contents: write
on:
push:
branches:
- 'prod'
tags:
- '*'
jobs:
build:
name: 🛠 Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🛠️ Install Dependencies
run: |
yarn global add pkg
yarn install
- name: ⚙️ Build
run: |
yarn run build:pkcli
rm dist/pkcli.js
- name: 📂 Store artifacts
uses: actions/upload-artifact@v3
with:
name: build_pkcli
path: |
dist/
publish:
name: 🛠 Publish artifacts
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- name: 📤 Public Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: "🎉 Public Release ${{ github.ref_name }}"
body: "🎉 Public Release ${{ github.ref_name }}"
tag_name: "${{ github.ref }}"
repository: "NukaWorks/Pakagify"
draft: true
generate_release_notes: true
token: ${{ secrets.GH_TOKEN }}
files: |
./**/*