fractal/.gitlab-ci.yml
Kévin Commaille 863546c23a
ci: Trigger workflow when there is a commit tag
Should hopefully finally fix the release workflow
2023-11-08 18:53:48 +01:00

36 lines
No EOL
899 B
YAML

stages:
- check
- build
- test
- deploy
variables:
FLATPAK_MODULE: "fractal"
workflow:
rules:
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_TAG
variables:
MANIFEST_PATH: "build-aux/org.gnome.Fractal.Devel.json"
APP_ID: "org.gnome.Fractal.Devel"
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != "main"
variables:
MANIFEST_PATH: "build-aux/org.gnome.Fractal.Hack.json"
APP_ID: "org.gnome.Fractal.Hack"
include:
- local: .gitlab-ci/run_checks.yml
rules:
- if: $CI_COMMIT_TAG == null
- local: .gitlab-ci/build.yml
rules:
- if: $CI_COMMIT_TAG == null
- local: .gitlab-ci/publish_docs.yml
rules:
- if: $CI_COMMIT_BRANCH == "main"
- local: .gitlab-ci/publish_nightly.yml
rules:
- if: $CI_COMMIT_BRANCH == "main"
- local: .gitlab-ci/create_release.yml
rules:
- if: $CI_COMMIT_TAG