Skip to content

Commit

Permalink
Added auto asset uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
MewX committed Aug 29, 2020
1 parent 7994233 commit 7d2c7a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ jobs:
Automatic Release by GitHub Workflow
draft: false
prerelease: false
- name: Install Bazel
run: |
wget https://github.com/bazelbuild/bazel/releases/download/3.4.1/bazel_3.4.1-linux-x86_64.deb
wget https://github.com/bazelbuild/bazel/releases/download/3.4.1/bazel_3.4.1-linux-x86_64.deb.sha256
sha256sum -c bazel_3.4.1-linux-x86_64.deb.sha256
sudo dpkg -i bazel_3.4.1-linux-x86_64.deb
- name: Build Release Assets
run: |
bazel build :doubak
mkdir releases
cp ./bazel-bin/doubak_/doubak releases/doubak-linux-x64
- 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: ./releases/doubak-linux-x64
asset_name: doubak-linux-x64
asset_content_type: application/x-binary
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog

# v0.2
Adding uploading feature for auto releaser.

# v0.1
Initial dummy version.

0 comments on commit 7d2c7a9

Please sign in to comment.