mirror of
https://github.com/Revertron/Alfis
synced 2024-11-03 15:40:19 +00:00
Create rust_create_release.yml
This commit is contained in:
parent
259b5f846d
commit
a85cf32608
49
.github/workflows/rust_create_release.yml
vendored
Normal file
49
.github/workflows/rust_create_release.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
name: Create release
|
||||
|
||||
jobs:
|
||||
make_release:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Test version ${{ github.ref }}
|
||||
body: |
|
||||
Changes in this version
|
||||
To be written by maintainer.
|
||||
draft: true
|
||||
prerelease: true
|
||||
|
||||
windows:
|
||||
name: Create windows build
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build release binary
|
||||
run: |
|
||||
cargo build --release
|
||||
- name: Upload Windows binary
|
||||
id: upload-windows-binary
|
||||
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/release/alfis.exe
|
||||
asset_name: alfis_${GITHUB_REF##*/}.exe
|
||||
asset_content_type: application/octet-stream
|
Loading…
Reference in New Issue
Block a user