Skip to content

Commit

Permalink
chore: make sure old releases are deleted before creating a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
steveiliop56 committed Sep 18, 2024
1 parent 06cb665 commit b337766
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 @@ -12,19 +12,7 @@ on:
required: true

jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create tag
uses: rickstaa/action-create-tag@v1
with:
tag: ${{ github.event.inputs.version }}

build:
needs: create-tag
runs-on: ubuntu-latest
steps:
- name: Distinct ID
Expand Down Expand Up @@ -56,7 +44,7 @@ jobs:
runtipi-cli-go-amd64
release:
needs: [create-tag, build]
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
Expand All @@ -65,12 +53,9 @@ jobs:
name: binaries
path: binaries

- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: pyTooling/Actions/releaser@r0
with:
prerelease: false
tag_name: ${{ github.event.inputs.version }}
name: ${{ github.event.inputs.version }}
files: binaries/*
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.version }}
rm: true
files: binaries/*

0 comments on commit b337766

Please sign in to comment.