Skip to content

Commit

Permalink
TEST CI
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzhuohua committed Jun 19, 2024
1 parent 84278ea commit 9600b04
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name: MSBuild
on:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
branches: [ "main" ]

Expand Down Expand Up @@ -69,3 +71,27 @@ jobs:
with:
name: fpv4win
path: build/Release/

- name: Create release
if: startsWith(github.ref, 'refs/tags/')
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
files: |
fpv4win.zip
- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/')
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: fpv4win.zip
asset_name: fpv4win
asset_content_type: application/octet-stream

0 comments on commit 9600b04

Please sign in to comment.