forked from microsoft/botbuilder-python
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (76 loc) · 2.93 KB
/
Copy pathci.yaml
File metadata and controls
86 lines (76 loc) · 2.93 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: ci
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Pull Source
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Establish Versioning, Tags, and Labels
id: vtl
uses: mapped/action-vtl@latest
with:
baseVersion: 1.0.0
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Verify FURY_PUSH_TOKEN is set
env:
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
run: |
if [ -z "$FURY_PUSH_TOKEN" ]; then
echo "::error::FURY_PUSH_TOKEN secret is not set on this repo."
echo "Add it with: gh secret set FURY_PUSH_TOKEN --repo mapped/botbuilder-python"
exit 1
fi
- name: publish botbuilder-integration-aiohttp-forked
run: |
echo "version: $packageVersion"
python setup.py sdist
# setuptools >=69 normalizes sdist filenames (PEP 625), so glob rather than
# hard-coding the hyphenated form we used to write.
sdist=$(ls -1 dist/*.tar.gz | head -n1)
echo "publishing $sdist"
curl --fail-with-body -F "package=@${sdist}" "https://${FURY_PUSH_TOKEN}@push.fury.io/mapped/"
env:
packageVersion: ${{ steps.vtl.outputs.ver_semVerNoMeta}}
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
working-directory: ./libraries/botbuilder-integration-aiohttp
- name: publish botframework-connector-forked
run: |
echo "version: $packageVersion"
python setup.py sdist
sdist=$(ls -1 dist/*.tar.gz | head -n1)
echo "publishing $sdist"
curl --fail-with-body -F "package=@${sdist}" "https://${FURY_PUSH_TOKEN}@push.fury.io/mapped/"
env:
packageVersion: ${{ steps.vtl.outputs.ver_semVerNoMeta}}
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
working-directory: ./libraries/botframework-connector
- name: publish botframework-streaming-forked
run: |
echo "version: $packageVersion"
python setup.py sdist
sdist=$(ls -1 dist/*.tar.gz | head -n1)
echo "publishing $sdist"
curl --fail-with-body -F "package=@${sdist}" "https://${FURY_PUSH_TOKEN}@push.fury.io/mapped/"
env:
packageVersion: ${{ steps.vtl.outputs.ver_semVerNoMeta}}
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
working-directory: ./libraries/botframework-streaming
- name: publish botbuilder-core-forked
run: |
echo "version: $packageVersion"
python setup.py sdist
sdist=$(ls -1 dist/*.tar.gz | head -n1)
echo "publishing $sdist"
curl --fail-with-body -F "package=@${sdist}" "https://${FURY_PUSH_TOKEN}@push.fury.io/mapped/"
env:
packageVersion: ${{ steps.vtl.outputs.ver_semVerNoMeta}}
FURY_PUSH_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
working-directory: ./libraries/botbuilder-core