-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.15 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
on:
push:
branches:
- main
workflow_dispatch:
branches:
- main
permissions:
contents: write
id-token: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
default-branch: main
release-type: node
- name: Git clone the repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Build vt-aws-sso-cli...
run: |
npm pkg set version=${{steps.release.outputs.tag_name || 'dev'}}
npm install
npm run release
cd releases/
zip aws-sso-win-x64.zip aws-sso-win-x64.exe
rm aws-sso-win-x64.exe
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
if: ${{ steps.release.outputs.release_created }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: releases/*
tag: ${{steps.release.outputs.tag_name}}
overwrite: true
file_glob: true