dotnet-deploy-k8s/.gitea/workflows/deploy-main-demo.yaml
MYJ 007854850a
All checks were successful
deploy to dev / Explore-Gitea-Actions (push) Successful in 2s
deploy to main / Explore-Gitea-Actions (pull_request) Successful in 1s
3
2025-02-26 20:46:40 +08:00

15 lines
371 B
YAML

name: deploy to main
on:
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- main
jobs:
Explore-Gitea-Actions:
runs-on: home
steps:
- name: 部署到生产环境
if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.ref == 'refs/heads/main'
run: echo "prod"