Improve CI/CD
This commit is contained in:
parent
60b64118b7
commit
efe18bdbb0
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -20,6 +20,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install wheel
|
||||
pip install -r requirements.txt
|
||||
- name: build
|
||||
run: |
|
||||
@ -40,16 +41,17 @@ jobs:
|
||||
- name: Update Version
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install wheel
|
||||
pip install -r requirements.txt
|
||||
- name: Build
|
||||
id: build
|
||||
run: |
|
||||
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
|
||||
uses: JasonEtco/upload-to-release@v0.1.1
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user