Skip to content

Create release before upload it. #6

Create release before upload it.

Create release before upload it. #6

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
create-release:
- name: Create Release

Check failure on line 10 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
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:
architecture: [x64, x86]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: dotnet build Installer --arch ${{ matrix.architecture }} --configuration Release
- name: Upload binaries to release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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