reduce cpu number to 1 #8
This file contains hidden or 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
name: Build and Deploy on pokemon Auto Chess Assets | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: prod | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Copy dist folder to another repository | |
uses: crykn/copy_folder_to_another_repo_action@v1.0.6 | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_TOKEN }} | |
with: | |
source_folder: 'app/public/dist/client/assets' | |
destination_repo: 'keldaanCommunity/pokemonAutoChessAssets' | |
destination_folder: 'assets' | |
user_email: 'keldaan.ag@gmail.com' | |
user_name: 'keldaan' | |
commit_msg: 'Update assets' | |
destination_branch: 'main' |