Skip to content

Commit

Permalink
Create release at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Feb 13, 2024
1 parent 4fd15cd commit bbf7f93
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,40 +36,13 @@ jobs:
# echo ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
# echo ${{ steps.branch_name.outputs.SOURCE_TAG }}

- name: "✏️ Generate release changelog"
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
env:
GOPATH: /home/runner/go
run: |
make build_all
tar cvfz metadata.tar.gz srv*
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload binaries
id: upload_binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./metadata.tar.gz
asset_name: metadata.tar.gz
asset_content_type: application/octet-stream

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down Expand Up @@ -100,3 +73,31 @@ jobs:
tags: |
ghcr.io/chesscomputing/metadata:latest
ghcr.io/chesscomputing/metadata:${{ steps.branch_name.outputs.SOURCE_TAG }}
- name: "✏️ Generate release changelog"
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload binaries
id: upload_binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./metadata.tar.gz
asset_name: metadata.tar.gz
asset_content_type: application/octet-stream

0 comments on commit bbf7f93

Please sign in to comment.