-
-
Notifications
You must be signed in to change notification settings - Fork 345
45 lines (37 loc) · 926 Bytes
/
deploy-bota-py.yml
File metadata and controls
45 lines (37 loc) · 926 Bytes
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
name: Build and Deploy Bota
on:
push:
branches: [ master ]
paths:
- 'bota/**'
jobs:
build-and-deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install twine setuptools
- name: Build and Push
run: |
npm run upload -- -u __token__ -p ${{ secrets.PYPI_TOKEN }}
working-directory: bota
- name: Pull Changes
run: |
git pull
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master