diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 468b9c8..2e1b5e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,14 +54,11 @@ release: - npm install - gulp release - # Update system.json with the release URL - - | - sed -i "s|\"download\":.*|\"download\": \"https://gitlab.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/releases/v$VERSION/download\",|" system.json - grep '"download":' system.json - git config --global user.name "GitLab CI" - git config --global user.email "ci@gitlab.com" - - git add system.json - - git commit -m "Update system.json with release URL" + - git add kidsonbrooms.zip + - git commit -m "Update .zip with new version" - git push "https://$CI_COMMITTER_USER_AND_TOKEN@gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}.git" HEAD:master # Create a release on GitLab @@ -78,7 +75,7 @@ release: "links": [ { "name": "Download kidsonbrooms.zip", - "url": "https://gitlab.com/wintermyst/kidsonbrooms/-/jobs/$CI_JOB_ID/artifacts/download" + "url": "https://gitlab.com/wintermyst/kidsonbrooms/-/raw/master/kidsonbrooms.zip?inline=false" } ] } @@ -92,7 +89,7 @@ release: \"id\": \"Your-Package-ID\", \"release\": { \"version\": \"$VERSION\", - \"manifest\": \"https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/raw/master/system.json\", + \"manifest\": \"https://gitlab.com/wintermyst/kidsonbrooms/-/raw/master/system.json", \"notes\": \"https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/releases/v$VERSION\", \"compatibility\": { \"minimum\": \"12.331\", @@ -111,12 +108,3 @@ release: paths: - kidsonbrooms.zip expire_in: never - release: - name: "Release v$VERSION" - tag_name: "v$VERSION" - description: "Release v$VERSION" - ref: master - assets: - links: - - name: "Download kidsonbrooms.zip" - url: "https://gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/jobs/${CI_JOB_ID}/artifacts/raw/kidsonbrooms.zip"