Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: CI/CD
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Instal Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Yarn
run: npm install -g yarn
- name: Install rust & cargo
run: rustup update stable && rustup default stable
- name: Install wasm-pack
uses: jetli/[email protected]
- name: Install dependencies
run: yarn
- name: Build rust-game
run: yarn build:rust-game
- name: Build frontend
run: yarn build
- name: Deploy
uses: cloudflare/[email protected]
with:
# Cloudflare API Token
apiToken: ${{ CLOUDFLARE_API_TOKEN }}

Check failure on line 37 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 37, Col: 21): Unrecognized named-value: 'CLOUDFLARE_API_TOKEN'. Located at position 1 within expression: CLOUDFLARE_API_TOKEN .github/workflows/main.yml (Line: 39, Col: 22): Unrecognized named-value: 'CLOUDFLARE_ACCOUNT_ID'. Located at position 1 within expression: CLOUDFLARE_ACCOUNT_ID
# Cloudflare Account ID
accountId: ${{ CLOUDFLARE_ACCOUNT_ID }}
# The name of the Pages project to upload to
projectName: rocket-game
# The directory of static assets to upload
directory: /packages/web/dist