-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (60 loc) · 2.44 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Release Action
on:
workflow_dispatch:
jobs:
build_and_release:
runs-on: windows-latest
name: Build and create release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node 16.16.0
uses: actions/setup-node@v3
with:
node-version: 16.16.0
- run: node -v
# - name: Get package version
# id: package-version
# uses: martinbeentjes/[email protected]
- name: Get package version
id: get-version
uses: beaconbrigade/[email protected]
with:
path: .
- name: Print the version
run: echo "Metadata tool version v${{ steps.get-version.outputs.version }}"
- name: Install dependencies
run: npm i
- name: Generate build
run: npm run build
- name: Sign executable/binary file
uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.SIGNING_CERT }}'
password: '${{ secrets.SIGNING_CERT_PASSWORD }}'
folder: './releases'
recursive: true
files: ./releases/*
description: 'Ultra Metadata Tool'
- name: Generate release body
run: |
echo ${{ steps.get-version.outputs.version }} >> release_body.txt
- run: ls ./releases
- name: Create release and add files
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.BLOCKCHAIN_CI_SECRET }}
with:
name: Release ${{ steps.get-version.outputs.version }}
tag_name: ${{ steps.get-version.outputs.version }}
body_path: release_body.txt
files: ./releases/*
- name: Upload to slack step
uses: MeilCli/slack-upload-file@v3
with:
slack_token: ${{ secrets.SLACK_TOKEN }}
channel_id: ${{ secrets.SLACK_CHANNEL_ID }}
file_type: auto
file_path: releases/*
initial_comment: '🎊 A new version of Metadata tool is available to download 🎊'
- run: echo "Finished. Job's status is ${{ job.status }}."