Skip to content

Manual Release

Manual Release #46

Workflow file for this run

name: Manual Release
on:
workflow_dispatch:
inputs:
release_token:
description: 'Your release token'
required: true
release_reason:
description: 'Short reason for this manual release'
required: true
jobs:
token-check:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
script: |
core.setFailed('token are not equivalent!')
if: github.event.inputs.release_token != env.release_token
env:
release_token: ${{ secrets.JINA_SAGEMAKER_RELEASE_TOKEN }}
regular-release:
needs: token-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100 # means max contribute history is limited to 100 lines
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- 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 }}
- if: failure()
run: echo "nothing to release"
- name: bumping master version
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.JINA_DEV_BOT }}
tags: true
branch: main