Skip to content

Commit

Permalink
Update actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-782 committed Nov 14, 2023
1 parent d2de526 commit 8c37efa
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pr-build-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_RUNNER_DEBUG: true
steps:
- name: Install Node.js
uses: actions/setup-node@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pr-code-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Install Node.js
uses: actions/setup-node@v4
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/push-main-generate-artifacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build project check

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "16"

- name: Checkout war3js_unsafe repository
uses: actions/checkout@v4
with:
repository: kirill-782/war3js_unsafe
path: unsafe

- name: Install unsafe dependencies
run: npm install
working-directory: ./unsafe

- name: Build unsafe
run: npm run build
working-directory: ./unsafe

- name: Checkout current repository
uses: actions/checkout@v4
with:
path: bootstrap

- name: Install dependencies
run: npm install
working-directory: ./bootstrap

- name: Bundle js file
run: npm run bundle
working-directory: ./bootstrap

- name: Bundle types
run: npm run typesgen
working-directory: ./bootstrap

- name: Upload bootstrap.js
uses: actions/upload-artifact@v3
with:
name: bootstrap.js
path: ./bootstrap/build/esbuild/bootstrap.js

- name: Upload natives.d.ts
uses: actions/upload-artifact@v3
with:
name: natives.js
path: ./bootstrap/build/fullTypes/natives.d.ts

- name: Upload bootstrap.d.ts
uses: actions/upload-artifact@v3
with:
name: bootstrap.d.ts
path: ./bootstrap/build/fullTypes/bootstrap.d.ts

0 comments on commit 8c37efa

Please sign in to comment.