golden-age / appimage-tools
blue-ci-cd.yml
| 1 | # Tag push: verify the pinned files, then publish them as release assets of |
| 2 | # that tag (POST /repos/{project}/releases/{tag}/assets, create-only). |
| 3 | stages: [verify, release] |
| 4 | |
| 5 | workflow: |
| 6 | rules: |
| 7 | - if: $CI_COMMIT_BRANCH == "master" |
| 8 | - if: $CI_COMMIT_TAG != "" |
| 9 | |
| 10 | verify: |
| 11 | stage: verify |
| 12 | image: bluegit/base |
| 13 | script: |
| 14 | - cd tools && sha256sum -c SHA256SUMS |
| 15 | artifacts: |
| 16 | paths: [tools/appimagetool-x86_64.AppImage, tools/runtime-x86_64, tools/SHA256SUMS] |
| 17 | expire_in: 2w |
| 18 | |
| 19 | release: |
| 20 | stage: release |
| 21 | image: bluegit/base |
| 22 | needs: [verify] |
| 23 | rules: |
| 24 | - if: $CI_COMMIT_TAG != "" |
| 25 | script: |
| 26 | - bash release.sh |