Skip to content

Commit

Permalink
chore: switch marvinpinto/action-automatic-releases for development b…
Browse files Browse the repository at this point in the history
…uild
  • Loading branch information
giangndm committed Nov 23, 2023
1 parent 002cd33 commit 8e1bca1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release
on:
push:
branches: [ main ]
tags:
- 'v*.*.*'
workflow_dispatch:
Expand Down Expand Up @@ -138,11 +139,9 @@ jobs:
steps:
- name: create_release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: marvinpinto/action-automatic-releases@latest
with:
tag_name: ${{ github.event_name == 'workflow_dispatch' && '' || github.ref }}
release_name: Build ${{ github.event_name == 'workflow_dispatch' && 'development' || github.ref }}
draft: ${{ github.event_name == 'workflow_dispatch' }}
prerelease: true
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.event_name == 'workflow_dispatch' && 'latest' || (github.ref == 'refs/heads/main' && 'latest') || github.ref }}
title: Build ${{ github.event_name == 'workflow_dispatch' && 'development' || github.ref }}
prerelease: true

0 comments on commit 8e1bca1

Please sign in to comment.