transition to sed
This commit is contained in:
parent
b62acac625
commit
862154d5ba
8
.github/workflows/build_and_release.yml
vendored
8
.github/workflows/build_and_release.yml
vendored
@ -23,10 +23,10 @@ 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 into src.__version__
|
- name: Build the sucker
|
||||||
run: echo "__version__ = '${{ env.SHORT_SHA }}'" > src/__init__.py
|
run: |
|
||||||
- name: build the sucker
|
sed -i -e "s/?????/${{ env.SHORT_SHA }}/g" src/__init__.py
|
||||||
run: make build
|
make build
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: "utils"
|
artifacts: "utils"
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
__version__ = "?????" # will be replaced during build by CI
|
Loading…
Reference in New Issue
Block a user