dotnet-deploy-k8s/bak/deploy-dev-demo.yaml
MYJ cce813c31f
All checks were successful
deploy to dev / Explore-Gitea-Actions (push) Successful in 2s
9
2025-02-26 21:46:13 +08:00

21 lines
606 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: deploy to dev
on:
push:
branches:
- dev
jobs:
Explore-Gitea-Actions:
runs-on: home
steps:
- name: 输出事件信息
run: echo "event_name=${{ gitea.event_name }}merged=${{ gitea.event.pull_request.merged }}gitea.ref=${{ gitea.ref }}"
- name: 部署到测试环境dev
if: ${{ gitea.ref == 'refs/heads/dev' }}
run: echo "dev"
- name: 部署到生产环境main
if: ${{ gitea.event_name == 'pull_request' && gitea.event.pull_request.merged == true && gitea.ref == 'refs/heads/main' }}
run: echo "main"