Merge pull request #150 from snshn/cd-windows-executable
Make the pipeline upload windows build to every new release
This commit is contained in:
commit
e5fc05f5cd
1 changed files with 23 additions and 0 deletions
23
.github/workflows/cd.yml
vendored
Normal file
23
.github/workflows/cd.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: CD
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- run: git config --global core.autocrlf false
|
||||||
|
- name: Checkout the repository
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Build the executable
|
||||||
|
run: cargo build --all --locked
|
||||||
|
- name: Perform local installation
|
||||||
|
run: cargo install --force --locked --path .
|
||||||
|
- uses: Shopify/upload-to-release@1.0.0
|
||||||
|
with:
|
||||||
|
name: monolith.exe
|
||||||
|
path: C:\Users\runneradmin\.cargo\bin\monolith.exe
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue