# RECORD A RELEASE PUBLISHED BEFORE GITEA KEPT THE RECORD. # # For 0.2.6.6 and anything earlier worth recording: the package is taken # from the update server as it is served, checked against the SHA-256 # given, and kept in a Gitea release tagged at the commit given. Whether # it is on Preview or Stable is read off the server, never assumed. # Nothing is built or published. name: Release - import an existing release on: workflow_dispatch: inputs: version: description: 'A version already on the update server' required: true sha256: description: 'Its SHA-256' required: true commit: description: 'The full commit it was built from' required: true jobs: import: name: record it runs-on: ekklesia-ci steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Import env: VERSION: ${{ github.event.inputs.version }} SHA256: ${{ github.event.inputs.sha256 }} COMMIT: ${{ github.event.inputs.commit }} GITEA_TOKEN: ${{ secrets.RELEASE_API_TOKEN || github.token }} run: RELEASE_CI_WORK="$RUNNER_TEMP/release" tools/release-ci.sh import "$VERSION" "$SHA256" "$COMMIT"