Skip to content

Commit

Permalink
change release action (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadleyy authored Dec 11, 2021
1 parent 6f88993 commit 503f68e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 26 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,13 @@ jobs:
run: cp target/armv7-unknown-linux-gnueabihf/release/boxbot target/dist/twowaiyo/boxbot
- name: Compress distributable
run: tar cvzf ./twowaiyo-armv7-unknown-linux-gnueabihf.tar.gz -C target/dist twowaiyo
- name: Create release
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
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 asset
if: startsWith(github.ref, 'refs/tags/')
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 }}
asset_path: ./twowaiyo-armv7-unknown-linux-gnueabihf.tar.gz
asset_name: twowaiyo-armv7-unknown-linux-gnueabihf.tar.gz
asset_content_type: application/tar+gzip
files: ./twowaiyo-armv7-unknown-linux-gnueabihf.tar.gz
################################################################
# the following workflow have been deprecated:
# - https://github.com/actions/create-release
# - https://github.com/actions/upload-release-asset
################################################################
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion workspace/bankah/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bankah"
version = "0.3.1"
version = "0.3.2"
edition = "2018"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion workspace/stickbot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stickbot"
version = "0.3.1"
version = "0.3.2"
edition = "2018"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion workspace/twowaiyo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twowaiyo"
version = "0.3.1"
version = "0.3.2"
edition = "2018"

[lib]
Expand Down

0 comments on commit 503f68e

Please sign in to comment.