forked from docarray/docarray
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.47 KB
/
cd.yml
File metadata and controls
57 lines (50 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CD
on:
push:
branches:
- main
jobs:
success-all-test:
uses: ./.github/workflows/ci.yml
secrets:
JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}"
prerelease:
needs: [success-all-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.5.0
with:
fetch-depth: 100
- name: Pre-release (.devN)
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
pip install poetry
./scripts/release.sh
env:
PYPI_USERNAME: ${{ secrets.TWINE_USERNAME }}
PYPI_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }}
check-readme-modification:
runs-on: ubuntu-latest
outputs:
readme_changed: ${{ steps.step_output.outputs.readme_changed }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v41
with:
files: |
README.md
- name: Check if README is modified
id: step_output
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: |
echo "readme_changed=true" >> $GITHUB_OUTPUT
publish-docarray-org:
needs: check-readme-modification
if: needs.check-readme-modification.outputs.readme_changed == 'true'
uses: ./.github/workflows/publish-docarray-org.yml
secrets: inherit