From a05af0a9a57e02de8c695caff4b9054cfe8b823c Mon Sep 17 00:00:00 2001 From: Brian Misiak Date: Tue, 30 Jun 2020 22:10:36 -0700 Subject: [PATCH] Autorelease --- .github/workflows/rust.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3a4512e..d76aeb4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -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