Skip to content

Commit

Permalink
Try to fix github release ... again
Browse files Browse the repository at this point in the history
  • Loading branch information
Patralos committed Aug 24, 2023
1 parent 0b15fb4 commit 07890a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ release_job_github:
needs: [build-release]
extends:
- .depends_docker
- sync
variables:
GIT_STRATEGY: clone
rules:
- if: $CI_COMMIT_TAG =~ /^prod-.*/ # Run this job on prod deployments
script:
Expand Down Expand Up @@ -178,6 +179,10 @@ release_job_github:
- cp -r * .gitignore .dockerignore /tmp/sysreptor
- tar -czf /tmp/source-prebuilt.tar.gz -C /tmp sysreptor --exclude=sysreptor/.git

- git remote add public https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/Syslifters/sysreptor.git
- git config --global user.email $GITHUB_USER_MAIL
- git config --global user.name $GITHUB_USERNAME
- git push public main
# Upload to GitHub
- gh release create "${VERSION_NUMBER}" /tmp/source-prebuilt.tar.gz --title="${VERSION_NUMBER}" --target="${CI_COMMIT_SHA}"

Expand Down

0 comments on commit 07890a0

Please sign in to comment.