chia-blockchain/.github/workflows/start-release.yml
William Allen a9d2b97955
Rework Bladebit artifact logic, CI cleanup, release simulation (#15887)
* Rework Bladebit artifact logic, CI cleanup

* Fixing input indentation

* Extra quote

* Fix linting on windows, and OSX conditionals

* Using bladebit suffix

* removed extra quote

* Fixed inputs name

* adding blank option
2023-07-31 18:56:41 -05:00

21 lines
649 B
YAML

# Starts a release for the given ref on the Glue API
name: Start Release
on:
workflow_dispatch:
release:
types: [published]
jobs:
start_release:
name: Starts release process in Glue API
runs-on: [glue-notify]
steps:
- name: Set Env
uses: Chia-Network/actions/setjobenv@main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Start release
if: "!github.event.release.prerelease"
run: |
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"chia_ref": "$RELEASE_TAG"}' ${{ secrets.GLUE_API_URL }}/api/v1/$RFC_REPO/$RELEASE_TAG/start