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
on:
push:
branches: ["main"]
workflow_run:
workflows: ["CI"]
types:
- completed
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
release:
......
name: CI
on: [push, pull_request]
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
env:
CARGO_TERM_COLOR: always
jobs:
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