Improve CI/CD

This commit is contained in:
Layla 2022-02-05 21:15:49 -05:00
parent 60b64118b7
commit efe18bdbb0

View File

@ -20,6 +20,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install wheel
pip install -r requirements.txt pip install -r requirements.txt
- name: build - name: build
run: | run: |
@ -40,16 +41,17 @@ jobs:
- name: Update Version - name: Update Version
run: | run: |
echo "Setting version to: ${GITHUB_REF:10}" echo "Setting version to: ${GITHUB_REF:10}"
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF:10}/g" jira_tracker/__init__.py sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF:10}/g" multistream/__init__.py
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install wheel
pip install -r requirements.txt pip install -r requirements.txt
- name: Build - name: Build
id: build id: build
run: | run: |
python setup.py sdist python setup.py sdist
echo "::set-output name=artifact::dist/jira-tracker-${GITHUB_REF:10}.tar.gz" echo "::set-output name=artifact::dist/multistream-${GITHUB_REF:10}.tar.gz"
- name: Upload to release - name: Upload to release
uses: JasonEtco/upload-to-release@v0.1.1 uses: JasonEtco/upload-to-release@v0.1.1
with: with: