change injection point
This commit is contained in:
parent
a6a6ed008c
commit
b62acac625
6
.github/workflows/build_and_release.yml
vendored
6
.github/workflows/build_and_release.yml
vendored
@ -23,10 +23,8 @@ jobs:
|
|||||||
# https://stackoverflow.com/a/64195658
|
# https://stackoverflow.com/a/64195658
|
||||||
- name: Add SHORT_SHA env property with commit short sha
|
- name: Add SHORT_SHA env property with commit short sha
|
||||||
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV
|
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV
|
||||||
- name: Inject version
|
- name: Inject version into src.__version__
|
||||||
run: |
|
run: echo "__version__ = '${{ env.SHORT_SHA }}'" > src/__init__.py
|
||||||
touch src/__version__.py
|
|
||||||
echo "__version__ = '${{ env.SHORT_SHA }}'" >> src/__version__.py
|
|
||||||
- name: build the sucker
|
- name: build the sucker
|
||||||
run: make build
|
run: make build
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user