Skip to content

chore(ci): modify CI/CD process #6

chore(ci): modify CI/CD process

chore(ci): modify CI/CD process #6

Workflow file for this run

name: create_release_when_tagged
on:
workflow_dispatch:
# 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
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: ${{ steps.build_deploy.outputs.release_name }}
draft: false
prerelease: false