Release candidate 2024-10-18-131823-a120d17 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: issue_comment | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: contains(github.event.comment.body, '/approve-release') && github.event.comment.author_association == 'OWNER' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get release candidate | |
id: get_data | |
uses: ./.github/actions/get_data | |
- name: create release | |
id: create_release | |
uses: actions/create-release@v1 | |
with: | |
tag_name: ${{ steps.get_data.outputs.version }} | |
release_name: Release ${{ steps.get_data.outputs.version }} | |
draft: false | |
prerelease: false | |
- name: Download earthlyw artifact | |
uses: dawidd6/action-download-artifact@v6 | |
with: | |
workflow: main.yaml | |
run_id: ${{ steps.get_data.outputs.run_id }} | |
name: earthlyw | |
- name: upload earthlyw to release | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./earthlyw | |
asset_name: earthlyw | |
asset_content_type: application/octet-stream | |
- name: Download ew artifact | |
uses: dawidd6/action-download-artifact@v6 | |
with: | |
workflow: main.yaml | |
run_id: ${{ steps.get_data.outputs.run_id }} | |
name: ew | |
- name: upload ew to release | |
uses: actions/upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./ew | |
asset_name: ew | |
asset_content_type: application/octet-stream | |
- uses: lee-dohm/close-matching-issues@v2 | |
if: success() | |
with: | |
query: 'label:release-candidate' | |
token: ${{ secrets.GITHUB_TOKEN }} |