I am using cocos Creator 3.6.2 i was writing YML for github actions workflow, and I am getting an error while installing Cocos Creator on the system. I am new to github actions.
Here is yml
name: CI/CD
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install Cocos Creator
run: |
# Download Cocos Creator
curl -L -o cocos.zip https://download.cocos.com/CocosCreator/v3/CocosCreator_v3.6.2/CocosCreator_v3.6.2_Windows.zip
# Extract Cocos Creator
Expand-Archive -Path 'cocos.zip' -DestinationPath 'cocoscreator'
# Add Cocos Creator to the PATH
echo "::add-path::$(PWD)/cocoscreator"
- name: Build and Test
run: |
# Change to the project directory
cd Cocos-ci-cd
# Install project dependencies
npm install
Can someone send an installation job for cocos creator would be great or sample yml