Commit 23c8a9fb authored by WorldTeacher's avatar WorldTeacher
Browse files

fix: new ci

parent 299da10b
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -30,6 +30,12 @@ zip-koplugin-release:
    - if: "$CI_COMMIT_TAG"
  before_script:
    - apk add --no-cache zip bash git
    # Authenticate glab against your self-hosted instance
    - glab auth login
      --hostname "$CI_SERVER_HOST"
      --job-token "$CI_JOB_TOKEN"
      --api-protocol https
      --git-protocol https
  script:
    - echo "Generating version information from tag $CI_COMMIT_TAG"
    - bash generate-version.sh
@@ -38,6 +44,11 @@ zip-koplugin-release:
    - cd bookloresync.koplugin && zip -r ../bookloresync.koplugin.zip *.lua
    - cd ..

    # Attach to the *existing* release created by semantic-release
    # (display name + link type)
    - glab release upload "$CI_COMMIT_TAG" "bookloresync.koplugin.zip#bookloresync.koplugin.zip#package" --use-package-registry
    # Attach asset to the existing release (semantic-release already created it)
    - glab release upload "$CI_COMMIT_TAG" \
      "bookloresync.koplugin.zip#bookloresync.koplugin.zip#package" \
      --use-package-registry \
      -R "$CI_PROJECT_PATH"
  artifacts:
    paths:
      - bookloresync.koplugin.zip