Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 715 Bytes

ReadMe.md

File metadata and controls

32 lines (25 loc) · 715 Bytes

Delete an existing release

In the following example, delete a previously existing release before creating a new one with the same tag.

name: Main

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Delete
        uses: kopp/action-delete-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: tag-here
          # by default uses current repository; specify a different one using `github_repository: org/repo`

      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          name: type-your-release-name
          tag_name: tag-here