Skip to content

Commit

Permalink
Autorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
bmisiak authored Jul 1, 2020
1 parent 2f01f83 commit a05af0a
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
name: Linux GLIBC_2_15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- name: Checkout code
uses: actions/checkout@v2
- name: Build linux
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: i686-unknown-linux-gnu
Expand All @@ -25,3 +27,23 @@ jobs:
use-cross: true
command: build
args: --target i686-unknown-linux-gnu
- name: Create Linux 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: true
prerelease: false
- name: Upload Linux 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: ./target/i686-unknown-linux-gnu/release/libnfg_timer.so
asset_name: samp-precise-timers.so
asset_content_type: application/x-sharedlib

0 comments on commit a05af0a

Please sign in to comment.