From 5431339ea3ffad732791cc60030ec4f461e7144c Mon Sep 17 00:00:00 2001 From: openserini <52283331+openserini@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:52:17 +0200 Subject: [PATCH] chore(ci): add create release workflow --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ mirror.json | 18 ------------------ 2 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/release.yml delete mode 100644 mirror.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..0a0562142 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/mirror.json b/mirror.json deleted file mode 100644 index 389f4d7fe..000000000 --- a/mirror.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "GerritApiUrl": "https://review.leboncoin.ci", - "Name": "ios", - "CredentialPath": "/home/denis.fortin/.gerrit-creds", - "Active": true - }, - { - "GithubOrg": "leboncoin", - "GitHubURL": "https://github.mpi-internal.com", - "CredentialPath": "/home/denis.fortin/.github-token", - "Name": "k8s.*", - "Topics": [ - "indexed-code" - ], - "NoArchived": true - } -]