Commit 6bd03789 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

improve ci/cd deploy only when release instead of push to main

parent 2437e3a4
name: CD name: CD
on: on:
push: release:
branches: ["main"] types: [published]
workflow_run: env:
workflows: ["CI"] CARGO_TERM_COLOR: always
types:
- completed
jobs: jobs:
release: release:
......
name: CI name: CI
on: [push, pull_request] on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
env:
CARGO_TERM_COLOR: always
jobs: jobs:
linux: linux:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment