This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
Merge pull request #140 from jina-ai/fix-workspace #216
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
prerelease: | |
if: | | |
!startsWith(github.event.head_commit.message, 'chore') && | |
!startsWith(github.event.head_commit.message, 'build: hotfix') && | |
!endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- name: Pre-release (.devN) | |
run: | | |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
pip install twine wheel | |
./scripts/release.sh | |
env: | |
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }} |