File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : Upload GlotScript to PIP
4+
5+ # Controls when the action will run.
6+ on :
7+ # Triggers the workflow when a release is created
8+ release :
9+ types : [created]
10+ # Allows you to run this workflow manually from the Actions tab
11+ workflow_dispatch :
12+
13+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+ jobs :
15+ # This workflow contains a single job called "upload"
16+ upload :
17+ # The type of runner that the job will run on
18+ runs-on : ubuntu-latest
19+
20+ # Steps represent a sequence of tasks that will be executed as part of the job
21+ steps :
22+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+ - uses : actions/checkout@v2
24+
25+ # Sets up python
26+ - uses : actions/setup-python@v2
27+ with :
28+ python-version : 3.8
29+
30+ # Install dependencies
31+ - name : " Installs dependencies"
32+ run : |
33+ python3 -m pip install --upgrade pip
34+ python3 -m pip install setuptools wheel twine
35+
36+ # Build and upload to PyPI
37+ - name : " Builds and uploads to PyPI"
38+ run : |
39+ python3 setup.py sdist bdist_wheel
40+ python3 -m twine upload dist/*
41+ env :
42+ TWINE_USERNAME : __token__
43+ TWINE_PASSWORD : ${{ secrets.TWINE_TOKEN_CIS }}
You can’t perform that action at this time.
0 commit comments