mirror of https://github.com/aminya/setup-cpp
ci: automatic release creation
This commit is contained in:
parent
61313e30d5
commit
2944fdfc3a
|
@ -6,6 +6,8 @@ on:
|
||||||
- master
|
- master
|
||||||
- main
|
- main
|
||||||
- dev
|
- dev
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Test:
|
Test:
|
||||||
|
@ -59,18 +61,25 @@ jobs:
|
||||||
|
|
||||||
# Create self-contained executable that bundles Nodejs
|
# Create self-contained executable that bundles Nodejs
|
||||||
- name: Create Executable
|
- name: Create Executable
|
||||||
if: "contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-20.04') || contains(matrix.os, 'macos-11')"
|
if: "contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12')"
|
||||||
run: |
|
run: |
|
||||||
pnpm run pack.exe
|
pnpm run pack.exe
|
||||||
|
|
||||||
- name: Upload Executable
|
# Draft the release
|
||||||
if: "contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-20.04') || contains(matrix.os, 'macos-11')"
|
- if: ${{ (github.event_name == 'tag') && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: meeDamian/github-release@2.0
|
||||||
with:
|
with:
|
||||||
path: |
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
./exe
|
gzip: folders
|
||||||
./dist
|
draft: true
|
||||||
retention-days: 1
|
files: >
|
||||||
|
./exe/setup_cpp_windows.exe
|
||||||
|
./exe/setup_cpp_linux
|
||||||
|
./exe/setup_cpp_mac
|
||||||
|
./dist/node12/setup_cpp.js
|
||||||
|
./dist/node12/setup_cpp.js.map
|
||||||
|
./dist/node12/
|
||||||
|
./dist/node16/
|
||||||
|
|
||||||
# - name: Setup SSH debugging session
|
# - name: Setup SSH debugging session
|
||||||
# uses: mxschmitt/action-tmate@v3
|
# uses: mxschmitt/action-tmate@v3
|
||||||
|
|
Loading…
Reference in New Issue