Skip to content

Commit

Permalink
Create release file
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Aug 31, 2021
1 parent 908c9b1 commit 5ef1391
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
- run: docker run -v $PWD/mosh:/mosh -w /mosh --name=builder builder sh -c './autogen.sh && LDFLAGS=-static ./configure && make'
- run: ldd mosh/src/frontend/mosh-client || true
- run: ldd mosh/src/frontend/mosh-server || true
- run: sha256sum mosh-server mosh-client
working-directory: mosh/src/frontend
- uses: actions/upload-artifact@v2
with:
name: mosh-server
Expand All @@ -25,3 +23,38 @@ jobs:
name: mosh-client
path: mosh/src/frontend/mosh-client
if-no-files-found: error
- run: |
(
echo '- [Build #${{ github.run_number }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})'
echo '- [Workflow file](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/.github/workflows/autobuild.yml)'
echo
echo '```'
(cd mosh/src/frontend && sha256sum mosh-server mosh-client)
echo '```'
) | tee release.md
- id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: run-${{ github.run_number }}
release_name: "Build #${{ github.run_number }}"
body_path: release.md
prerelease: false
draft: false
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: mosh/src/frontend/mosh-client
asset_name: mosh-client
asset_content_type: application/octet-stream
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: mosh/src/frontend/mosh-server
asset_name: mosh-server
asset_content_type: application/octet-stream

0 comments on commit 5ef1391

Please sign in to comment.