Skip to content

Commit

Permalink
fix: action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
moeakwak committed Nov 21, 2023
1 parent 94f22c9 commit 87be323
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build and publish Docker image
on:
push:
tags: ["v*"]
branches: ["test-workflow"]
workflow_dispatch:
inputs:
version:
Expand All @@ -12,6 +11,7 @@ on:

env:
IMAGE_NAME: ${{ github.repository }}
VERSION: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || github.ref_name }}

jobs:
build-and-push-x64-image:
Expand Down Expand Up @@ -88,11 +88,8 @@ jobs:
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: release.zip
tag_name: ${{ github.ref }}
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
tag_name: ${{ env.VERSION }}
prerelease: ${{ contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta') }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 87be323

Please sign in to comment.