FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docarray/.github/workflows/force-release.yml at main · docarray/docarray · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
docarray
/
docarray
Public
Notifications
You must be signed in to change notification settings
Fork
243
Star
3.1k
Code
Issues
68
Pull requests
43
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
docarray
/
.github
/
workflows
/
force-release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
56 lines (53 loc) · 1.64 KB
Breadcrumbs
docarray
/
.github
/
workflows
/
force-release.yml
Copy path
File metadata and controls
56 lines (53 loc) · 1.64 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
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
:
-
name
:
Check release token
id
:
token-check
run
:
|
touch SUCCESS
if
:
inputs.release_token == env.release_token
env
:
release_token
:
${{ secrets.DOCARRAY_RELEASE_TOKEN }}
-
name
:
Fail release token
run
:
|
[[ -f SUCCESS ]]
regular-release
:
needs
:
token-check
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2.5.0
with
:
token
:
${{ secrets.JINA_DEV_BOT }}
fetch-depth
:
100
#
means max contribute history is limited to 100 lines
#
submodules: true
-
uses
:
actions/setup-python@v4
with
:
python-version
:
3.8
-
run
:
|
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
npm install git-release-notes
python -m pip install poetry==1.7.1
./scripts/release.sh final "${{ github.event.inputs.release_reason }}" "${{github.actor}}"
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
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
:
${{ github.ref }}
Back
|
FazBrowse Home
|
New Git URL