mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-26 09:54:22 +01:00
feat: add package
This commit is contained in:
37
.github/workflows/manual-release.yml
vendored
Normal file
37
.github/workflows/manual-release.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Manual Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_reason:
|
||||
description: 'Short reason for this manual release'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
regular-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.JINA_DEV_BOT }}
|
||||
fetch-depth: 100
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.7
|
||||
- run: |
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
npm install git-release-notes
|
||||
pip install twine wheel
|
||||
./scripts/release.sh final "${{ github.event.inputs.release_reason }}" "${{github.actor}}"
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
||||
JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }}
|
||||
- if: failure()
|
||||
run: echo "nothing to release"
|
||||
- name: bumping master version
|
||||
uses: ad-m/github-push-action@v0.6.0
|
||||
with:
|
||||
github_token: ${{ secrets.JINA_DEV_BOT }}
|
||||
tags: true
|
||||
branch: main
|
||||
Reference in New Issue
Block a user