Update release pipeline
Fix versioning Fix artifact name Use artifact value as input fix output name Update workflows
This commit is contained in:
parent
2e8ec1cf9f
commit
7f16f4e6d7
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -2,7 +2,7 @@ name: Build
|
|||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
@ -15,7 +15,8 @@ jobs:
|
|||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Update Version
|
- name: Update Version
|
||||||
run: |
|
run: |
|
||||||
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF}/g" jira_tracker/__init__.py
|
echo "Setting version to: ${GITHUB_REF:10}"
|
||||||
|
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF:10}/g" jira_tracker/__init__.py
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -38,17 +39,20 @@ jobs:
|
|||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Update Version
|
- name: Update Version
|
||||||
run: |
|
run: |
|
||||||
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF}/g" jira_tracker/__init__.py
|
echo "Setting version to: ${GITHUB_REF:10}"
|
||||||
|
sed -i "s/[0-9.]*\.[0-9.]*\.[0-9.]*/${GITHUB_REF:10}/g" jira_tracker/__init__.py
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Build
|
- name: 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"
|
||||||
- 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:
|
||||||
args: dist/jira-tracker-*.tar.gz
|
args: ${{ steps.build.outputs.artifact }} application/tar+gzip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user