-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
4 changed files
with
105 additions
and
9 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
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,66 @@ | ||
name: Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
package: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Select platform(s) | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: Get npm cache directory | ||
id: npm-cache-dir | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.npm-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Run (root) npm install | ||
run: npm ci | ||
working-directory: ./ | ||
- name: Run (app) npm install | ||
run: npm ci | ||
working-directory: ./app | ||
- name: Run (wrapper) npm install | ||
run: npm ci | ||
working-directory: ./wrapper | ||
- name: Release stack | ||
run: npm run release | ||
working-directory: ./ | ||
- name: Upload artifact (Windows) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: snowman-win.zip | ||
path: ./wrapper/build/*.zip | ||
if: matrix.os == 'windows-latest' | ||
- name: Upload artifact (MacOS) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: snowman.dmg | ||
path: ./wrapper/build/*.dmg | ||
if: matrix.os == 'macos-latest' | ||
- name: Upload artifact (Linux) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: snowman-lnx.zip | ||
path: ./wrapper/build/*.zip | ||
if: matrix.os == 'ubuntu-latest' |
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