Skip to content

Commit

Permalink
chore(ci): add create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
openserini authored and denis.fortin committed Oct 18, 2024
1 parent f5f8e80 commit 5431339
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release

on:
workflow_dispatch:

permissions:
contents: write

jobs:
create_release:
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
release_name=$(find . -name "zoekt-*.gz" | xargs -I'{}' basename "{}" | sed 's/zoekt-//' | cut -d. -f1)
echo "release_name=$release_name" >> "$GITHUB_OUTPUT"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repository: leboncoin/zoekt
tag_name: ${{ steps.build_deploy.outputs.release_name }}
files: zoekt-${{ steps.build_deploy.outputs.release_name }}.tar.gz
draft: false
prerelease: false
18 changes: 0 additions & 18 deletions mirror.json

This file was deleted.

0 comments on commit 5431339

Please sign in to comment.