-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
266 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 |
---|---|---|
|
@@ -5,11 +5,13 @@ on: | |
branches: ["Gen2"] | ||
push: | ||
branches: ["Gen2"] | ||
release: | ||
types: ["created"] | ||
|
||
concurrency: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
generateClientCode: | ||
uses: ./.github/workflows/build-client.yml | ||
|
@@ -29,7 +31,7 @@ jobs: | |
with: | ||
node-version: 18 | ||
cache: npm | ||
cache-dependency-path: '**/package-lock.json' | ||
cache-dependency-path: "**/package-lock.json" | ||
- run: npm install | ||
- if: matrix.os == 'windows-latest' | ||
uses: microsoft/[email protected] | ||
|
@@ -39,9 +41,15 @@ jobs: | |
name: client-dist | ||
path: ./server/public | ||
- run: npm run make | ||
if: github.event_name != 'release' | ||
- uses: actions/upload-artifact@v3 | ||
if: github.event_name != 'release' | ||
with: | ||
name: package-${{ matrix.os }} | ||
path: ./server/out/make/**/*.* | ||
retention-days: 20 | ||
if-no-files-found: error | ||
if-no-files-found: error | ||
- run: npm run publish | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,6 @@ | ||
## Updating | ||
|
||
- Bump package.json version for client & server | ||
- Commit to gen2 branch and push | ||
- Create and publish a new release | ||
- (Github action will add files to release) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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