2
0
mirror of https://github.com/Revertron/Alfis synced 2024-11-03 15:40:19 +00:00
Alfis/.github/workflows/rust_create_release.yml

57 lines
1.5 KiB
YAML
Raw Normal View History

2021-02-23 00:48:32 +00:00
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
2021-02-23 01:20:20 +00:00
- name: Copy url
run: |
RELEASE_URL=${{ steps.create_release.outputs.upload_url }}
2021-02-23 00:48:32 +00:00
windows:
name: Create windows build
runs-on: windows-latest
2021-02-23 01:06:35 +00:00
defaults:
run:
shell: bash
2021-02-23 00:48:32 +00:00
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build release binary
run: |
2021-02-23 01:29:06 +00:00
echo "Ok"
2021-02-23 00:48:32 +00:00
- name: Upload Windows binary
id: upload-windows-binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
2021-02-23 01:20:20 +00:00
upload_url: ${RELEASE_URL}
2021-02-23 01:30:47 +00:00
asset_path: ./alfis.cfg
asset_name: alfis_${GITHUB_REF##*/}.cfg
2021-02-23 00:48:32 +00:00
asset_content_type: application/octet-stream