Loading .gitlab-ci.yml +27 −17 Original line number Diff line number Diff line Loading @@ -54,31 +54,41 @@ generate-apks: && echo "Signed STABLE" after_script: - rm ~/proprietary.keystore.jks - echo "JOB_ID=$CI_JOB_ID" >> job.env artifacts: paths: - $APK_PATH/$DEV_APK - $APK_PATH/$STABLE_APK reports: dotenv: job.env create-release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest when: manual needs: - generate-apks variables: TAG: 'Test2' rules: - if: $CI_COMMIT_TAG script: - echo "Create Release $TAG" - echo $JOB_ID release: name: 'Release $TAG' tag_name: '$TAG' ref: '$TAG' description: 'Release $TAG' assets: links: - name: $DEV_APK url: "https://gitlab.e.foundation/e/os/pwa-player/-/jobs/$JOB_ID/artifacts/download" No newline at end of file - > curl --fail --output "/dev/null" --silent --show-error --header 'Content-Type: application/json' --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --data "{ \"ref\": \"Reference\", \"name\": \"Test2 release\", \"tag_name\": \"Test2 tag\", \"description\": \"Description\", \"assets\": { \"links\": [ { \"name\": \"$DEV_APK\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/$PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$DEV_APK?job=build-nearby\", \"link_type\": \"package\" }, { \"name\": \"$STABLE_APK\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/$PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$STABLE_APK?job=build-nearby\", \"link_type\": \"package\" }, ] } }" --request POST https://gitlab.e.foundation/api/v4/projects/$PROJECT_ID/releases No newline at end of file Loading
.gitlab-ci.yml +27 −17 Original line number Diff line number Diff line Loading @@ -54,31 +54,41 @@ generate-apks: && echo "Signed STABLE" after_script: - rm ~/proprietary.keystore.jks - echo "JOB_ID=$CI_JOB_ID" >> job.env artifacts: paths: - $APK_PATH/$DEV_APK - $APK_PATH/$STABLE_APK reports: dotenv: job.env create-release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest when: manual needs: - generate-apks variables: TAG: 'Test2' rules: - if: $CI_COMMIT_TAG script: - echo "Create Release $TAG" - echo $JOB_ID release: name: 'Release $TAG' tag_name: '$TAG' ref: '$TAG' description: 'Release $TAG' assets: links: - name: $DEV_APK url: "https://gitlab.e.foundation/e/os/pwa-player/-/jobs/$JOB_ID/artifacts/download" No newline at end of file - > curl --fail --output "/dev/null" --silent --show-error --header 'Content-Type: application/json' --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --data "{ \"ref\": \"Reference\", \"name\": \"Test2 release\", \"tag_name\": \"Test2 tag\", \"description\": \"Description\", \"assets\": { \"links\": [ { \"name\": \"$DEV_APK\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/$PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$DEV_APK?job=build-nearby\", \"link_type\": \"package\" }, { \"name\": \"$STABLE_APK\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/$PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$STABLE_APK?job=build-nearby\", \"link_type\": \"package\" }, ] } }" --request POST https://gitlab.e.foundation/api/v4/projects/$PROJECT_ID/releases No newline at end of file