Skip to content

Commit

Permalink
Create GitHub releases from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ion1 committed Feb 9, 2022
1 parent 4d55bf8 commit ad834c4
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build and Release
on:
pull_request:
push:
Expand Down Expand Up @@ -75,3 +75,25 @@ jobs:
name: glslViewer-${{ matrix.os }}-build
path: build/${{ matrix.build_artifact }}
retention-days: 7

release:
if: github.event_name == 'push' && github.ref_type == 'tag'
needs: build
name: Release
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2

- name: Create release
uses: softprops/action-gh-release@v1
with:
name: GlslViewer ${{ github.ref_name }}
files: |
glslViewer-ubuntu-latest-build/*
glslViewer-windows-latest-build/*
generate_release_notes: true
body: |
To use the Windows build, please download [FFmpeg 4.4][ffmpeg] and copy `bin\*.dll` alongside `glslViewer.exe`.
[ffmpeg]: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n4.4-latest-win64-gpl-shared-4.4.zip

0 comments on commit ad834c4

Please sign in to comment.