Skip to content

Commit

Permalink
fix(ci): change release name
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Penserini committed Oct 18, 2024
1 parent 769945e commit 1aa11b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,29 @@ on:
# During test, to delete
pull_request:

permissions:
contents: write

jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Execute shell script
id: build_deploy
run: |
chmod +x ./build-deploy.sh
./build-deploy.sh
ls -al
release_name=$(find . -name "zoekt-*.gz" | xargs -I'{}' basename "{}" | sed 's/zoekt-//' | cut -d. -f1)
echo "::set-output name=release_name::$release_name"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repository: leboncoin/zoekt
tag_name: deploy-${{ github.ref_name}}
tag_name: ${{ steps.build_deploy.outputs.release_name }}
draft: false
prerelease: false

0 comments on commit 1aa11b2

Please sign in to comment.