not-jenni | 97ae6e5 | 2021-08-12 18:02:16 -0700 | [diff] [blame^] | 1 | # Publishes a draft snapshot, after performing validation to make sure all |
| 2 | # packages are stable (coming soon). |
| 3 | name: Validate and Publish Release |
| 4 | |
| 5 | on: |
| 6 | workflow_dispatch: |
| 7 | inputs: |
| 8 | release_id: |
| 9 | description: 'Release id to publish' |
| 10 | required: true |
| 11 | default: '' |
| 12 | |
| 13 | # TODO(jennik): Add more validation. https://github.com/google/iree/issues/6316 |
| 14 | |
| 15 | jobs: |
| 16 | publish_release: |
| 17 | name: "Publish release" |
| 18 | runs-on: ubuntu-18.04 |
| 19 | steps: |
| 20 | - name: Publish Release |
| 21 | id: publish_release |
| 22 | uses: eregon/publish-release@v1 |
| 23 | env: |
| 24 | GITHUB_TOKEN: ${{ secrets.WRITE_ACCESS_TOKEN }} |
| 25 | with: |
| 26 | release_id: ${{ github.event.inputs.release_id }} |