diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/continuous_integration.yaml similarity index 93% rename from .gitea/workflows/pipeline.yaml rename to .gitea/workflows/continuous_integration.yaml index 748c60d..25ec1fe 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/continuous_integration.yaml @@ -1,8 +1,10 @@ -name: Build, Test and Package Release +name: Continuous Integration on: workflow_dispatch: {} pull_request: types: [opened, synchronize, reopened] + push: + branches: [main] jobs: prepare: @@ -103,7 +105,7 @@ jobs: deploy: needs: [build, test] - if: github.event_name == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') uses: ./.gitea/workflows/deploy.yaml with: artifact_name: dist