stages:
  - publish_launcher
  - publish

publisWindowsExecutable:
  stage: publish_launcher
  tags:
    - windows
  script:
    - ./gradlew -i --no-build-cache clean PackrLauncher:publish

publishLinuxExecutable:
  stage: publish_launcher
  tags:
    - ubuntu
  script:
    - ./gradlew -i --no-build-cache clean PackrLauncher:publish

publishOsxExecutable:
  stage: publish_launcher
  tags:
    - osx
  script:
    - ./gradlew -i --no-build-cache clean PackrLauncher:publish

#publishWindows:
#  stage: publish
#  tags:
#    - windows
#  script:
#    - ./gradlew -i --no-build-cache clean build publish

publishLinux:
  stage: publish
  tags:
    - ubuntu
  script:
    - ./gradlew -i --no-build-cache --refresh-dependencies clean build publish

#publishOsx:
#  stage: publish
#  tags:
#    - osx
#  script:
#    - ./gradlew -i --no-build-cache clean build publish

after_script:
  - echo "End CI"

stages:
  - publish_launcher
  - build
  - publish

publisWindowsExecutable:
  stage: publish_launcher
  tags:
    - windows
  script:
    - ./gradlew -i --no-build-cache clean PackrLauncher:publish

publishLinuxExecutable:
  stage: publish_launcher
  tags:
    - ubuntu
  script:
    - ./gradlew -i --no-build-cache clean PackrLauncher:publish

publishOsxExecutable:
  stage: publish_launcher
  tags:
    - osx
  script:
    - ./gradlew -i --no-build-cache clean PackrLauncher:publish

buildWindows:
  stage: build
  tags:
    - windows
  script:
    - gradlew -i --no-build-cache --refresh-dependencies clean build

buildMac:
  stage: build
  tags:
    - osx
  script:
    - ./gradlew -i --no-build-cache --refresh-dependencies clean build

publishLinux:
  stage: publish
  tags:
    - ubuntu
  script:
    - ./gradlew -i --no-build-cache --refresh-dependencies clean build publish

after_script:
  - echo "End CI"

Add GitLab build stage for macOS and Windows
Add GitLab build stage for macOS and Windows
