Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KionX committed Jan 21, 2024
1 parent 9bfe9fa commit 7bf59f9
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
description: 'Release Version e.g.: 1.0'
required: true

jobs:
release:
environment: deploy
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Compiler
run: |
Expand All @@ -23,24 +23,9 @@ jobs:
cd dcc32
.\dcc32.exe -W- -H- ..\FADeepProbe.dpr
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
- name: Create Pre Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.event.inputs.version }}
release_name: v${{ github.event.inputs.version }}
draft: true
prerelease: true

- name: Upload Exe
id: upload-exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: FADeepProbe.exe
asset_name: FADeepProbe.exe
asset_content_type: application/vnd.microsoft.portable-executable
TAG: v${{ github.event.inputs.version }}
shell: bash
run: gh release create "$TAG" -p --generate-notes FADeepProbe.exe

0 comments on commit 7bf59f9

Please sign in to comment.