-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from aminya/release [skip ci]
- Loading branch information
Showing
8 changed files
with
162 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
- master | ||
- main | ||
- dev | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
Test: | ||
|
@@ -23,7 +25,7 @@ jobs: | |
- macos-12 | ||
- macos-11 | ||
node: | ||
- 14 # installed on the images | ||
- 16 | ||
pnpm: | ||
- 7 | ||
cache_reset_counter: | ||
|
@@ -57,29 +59,57 @@ jobs: | |
run: | | ||
pnpm install | ||
# - name: Setup SSH debugging session | ||
# uses: mxschmitt/action-tmate@v3 | ||
|
||
- name: Test | ||
if: "!contains(github.event.head_commit.message, '[skip ci test]')" | ||
run: | | ||
pnpm run test | ||
continue-on-error: ${{ contains(matrix.os, 'ubuntu-18.04') }} | ||
|
||
# Create self-contained executable that bundles Nodejs | ||
- 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: | | ||
pnpm run pack.exe | ||
- name: Upload Executable | ||
if: "contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-20.04') || contains(matrix.os, 'macos-11')" | ||
- name: Upload Artifacts | ||
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: | | ||
./exe | ||
./dist | ||
retention-days: 1 | ||
|
||
# - name: Setup SSH debugging session | ||
# uses: mxschmitt/action-tmate@v3 | ||
Release: | ||
needs: Test | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v3 | ||
|
||
- name: Test | ||
if: "!contains(github.event.head_commit.message, '[skip ci test]')" | ||
- name: Place Artifacts | ||
run: | | ||
pnpm run test | ||
continue-on-error: ${{ contains(matrix.os, 'ubuntu-18.04') }} | ||
mv -v artifact/* ./ | ||
chmod +x -R ./exe/ | ||
- name: Draft the release | ||
uses: meeDamian/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
gzip: folders | ||
draft: true | ||
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/ | ||
Docker: | ||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip docker]') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "module" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.