Skip to content

Commit

Permalink
.github/workflows/build.yaml: setup release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium authored Mar 10, 2023
1 parent d181117 commit ee9a30a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build for Windows

on: [push, pull_request]
on:
push:
workflow_dispatch:
inputs:
tag:
description: 'which tag to upload to'
default: ''

jobs:
build:
Expand Down Expand Up @@ -75,3 +81,22 @@ jobs:
path: |
builddir/*.dll
- name: Compress artifact for release
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
shell: cmd
run: |
cd builddir
mkdir vs-fft3dfilter-windows-${{ github.event.inputs.tag }}
xcopy fft3dfilter.dll vs-fft3dfilter-wimdows-${{ github.event.inputs.tag }} /f
7z a -t7z -mx=9 ../vs-fft3dfilter-windows-${{ github.event.inputs.tag }}.7z vs-fft3dfilter-windows-${{ github.event.inputs.tag }}
- name: Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
with:
tag_name: ${{ github.event.inputs.tag }}
files: |
vs-fft3dfilter-windows-${{ github.event.inputs.tag }}.7z
fail_on_unmatched_files: true
generate_release_notes: false
prerelease: true

0 comments on commit ee9a30a

Please sign in to comment.