Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gyf304 authored Jan 31, 2021
1 parent 088bf5f commit e17a219
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [ created ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -76,3 +78,21 @@ jobs:
build/MinSizeRel/discord_game_sdk.dll
build/MinSizeRel/wintun.dll
build/MinSizeRel/LICENSE
- name: Get Release Upload URL
if: github.event_name == 'release'
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: build/MinSizeRel/lpvpn-standalone.exe
asset_name: lpvpn-standalone-${{matrix.platform}}.exe
asset_content_type: application/vnd.microsoft.portable-executable

0 comments on commit e17a219

Please sign in to comment.