generated from sarioglu/svelte-tailwindcss-template
-
Notifications
You must be signed in to change notification settings - Fork 4
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
116 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Matrix build Grid Editor (ALPHA) | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v[12].[0-9]+.[0-9]+-alpha*" | ||
|
||
jobs: | ||
matrix-build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: "" | ||
submodules: true | ||
|
||
- name: Setup NodeJs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.13.2" | ||
|
||
- name: Set Env | ||
shell: bash | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
echo "${{ env.BRANCH_NAME }}" | ||
echo "RELEASE_CHANNEL=alpha" >> $GITHUB_ENV | ||
- name: Update package.json | ||
run: node ./build-scripts/nightly-packageModifier.js | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Build | ||
run: npm run export:nightly | ||
if: ${{ always() }} | ||
env: | ||
# gh repo token | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# windows Code signing | ||
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | ||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | ||
|
||
# Apple ID | ||
APPLE_ID: ${{secrets.APPLE_ID}} | ||
APPLE_ID_PASSWORD: ${{secrets.APPLE_ID_PASSWORD}} | ||
|
||
# macOS Code signing | ||
CSC_LINK: ${{ secrets.MAC_CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.os }}-nightly | ||
path: build/*.* | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ env.RELEASE_VERSION }} | ||
name: Release ${{ env.RELEASE_VERSION }} | ||
files: build/*.* | ||
draft: false | ||
prerelease: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
linux-unit-test: | ||
name: Linux Unit Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: "" | ||
submodules: true | ||
|
||
- name: Setup nodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.13.2" | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: "Run unit tests" | ||
run: | | ||
npm test >> unit_test.txt | ||
cat unit_test.txt | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: linux-unit-test | ||
path: unit_test.txt | ||
|
||
- uses: tsickert/discord-webhook@v4.0.0 | ||
with: | ||
webhook-url: ${{ secrets.DISCORD_DEV_WEBHOOK }} | ||
content: "Heyo, here are the editor unit test results!" | ||
filename: "unit_test.txt" |
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
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