36 lines
861 B
YAML
36 lines
861 B
YAML
pipeline:
|
|
build:
|
|
image: git.koval.net/cyclane/game-algorithms/wasm-pack-plugin
|
|
pull: true
|
|
settings:
|
|
actions: build
|
|
folder: wasm/o-x-rust
|
|
scope: game-algorithms
|
|
when:
|
|
branch:
|
|
exclude: [main]
|
|
path:
|
|
include:
|
|
- wasm/o-x-rust/*
|
|
- .woodpecker/wasm-o-x-rust.yml
|
|
build and publish:
|
|
image: git.koval.net/cyclane/game-algorithms/wasm-pack-plugin
|
|
pull: true
|
|
settings:
|
|
actions: build,publish
|
|
folder: wasm/o-x-rust
|
|
target: web
|
|
scope: game-algorithms
|
|
username: cyclane
|
|
token:
|
|
from_secret: DEPLOY_TOKEN
|
|
registry: https://git.koval.net/api/packages/cyclane/npm/
|
|
when:
|
|
branch: main
|
|
path:
|
|
include:
|
|
- wasm/o-x-rust/*
|
|
- .woodpecker/wasm-o-x-rust.yml
|
|
depends_on:
|
|
- tools-wasm-pack-plugin
|