-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c6b053
commit 0c755e4
Showing
1 changed file
with
20 additions
and
4 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 |
---|---|---|
|
@@ -8,30 +8,45 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get current date | ||
id: get-date | ||
run: | | ||
echo "NOW=$(date +'%Y%m%dT%H%M%S')" >> $GITHUB_ENV | ||
- name: npm install, build, and test | ||
run: | | ||
npm install | ||
npm run build --if-present | ||
npm test | ||
- name: Get Version From package.json | ||
id: get-version | ||
uses: beaconbrigade/[email protected] | ||
with: | ||
path: . | ||
- name: Package for Windows | ||
run: | | ||
wget -nv -P .dist/win-x64 https://nodejs.org/download/release/latest/win-x64/node.exe | ||
cp -r * .dist/win-x64/ | ||
|
||
- uses: ./.github/actions/nodeci-build-windows | ||
with: | ||
name: vlc-rpc-v${{steps.get-version.outputs.version}}-nightly${{env.NOW}}-bundled-win-x64 | ||
|
||
- uses: ./.github/actions/nodeci-build-linux | ||
with: | ||
name: vlc-rpc-v${{steps.get-version.outputs.version}}-nightly${{env.NOW}}-bundled-linux-x64 | ||
|
||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage-report | ||
path: output/test/code-coverage.html | ||
|
||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: vlc-rpc-v${{steps.get-version.outputs.version}}-bundled-win-x64 | ||
path: | | ||
.dist/win-x64 | ||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -72,3 +87,4 @@ jobs: | |
tag: ${{ steps.get-version.outputs.version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: .dist/zipped/*.zip | ||
if: env.RELEASE_EXISTS != 'true' |