Skip to content

Commit

Permalink
Create release before upload it.
Browse files Browse the repository at this point in the history
  • Loading branch information
rinrab committed Dec 26, 2023
1 parent 23b9d61 commit e8505dd
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ on:
- '*'

jobs:
create-release:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

build:
strategy:
matrix:
Expand All @@ -19,24 +31,13 @@ jobs:
- name: Build
run: dotnet build Installer --arch ${{ matrix.architecture }} --configuration Release

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload binaries to release
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 }}
upload_url: ${{ jobs.create-release.create_release.outputs.upload_url }}
asset_path: .\Installer\bin\Release\en-US\AOVpnManager.msi
asset_name: AOVpnManager-${{ matrix.architecture }}.msi
asset_content_type: application/msi

0 comments on commit e8505dd

Please sign in to comment.