From 1068ff659aca7d2e1a8d6d3642ece544a93ec00f Mon Sep 17 00:00:00 2001
From: Sunshine <sunshine@uberspace.net>
Date: Sun, 5 Apr 2020 14:29:06 -0400
Subject: [PATCH] make the pipeline upload windows build to every new release

---
 .github/workflows/cd.yml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 .github/workflows/cd.yml

diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
new file mode 100644
index 00000000..73a50cbf
--- /dev/null
+++ b/.github/workflows/cd.yml
@@ -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 }}