Skip to content

Commit

Permalink
push binary to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Sep 8, 2022
1 parent ea518ac commit 81e0fe6
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/compile_genconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,23 @@ jobs:
version: latest
files: genconfig/genconfig
args: -fq
- run: |
cd genconfig
git config user.name github-actions
git config user.email [email protected]
git add -f genconfig
git commit -m "pushing auto-generated genconfig binary to repo"
echo "pushing to main"
git push origin main
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: genconfig release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: genconfig/genconfig
asset_name: genconfig
asset_content_type: application/octet-stream

0 comments on commit 81e0fe6

Please sign in to comment.