Skip to content

Commit

Permalink
Fix yml indentation (purely cosmetics)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuet committed Sep 19, 2022
1 parent cf88620 commit 610bfe5
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install build dependencies
run: pip install -U setuptools wheel
- name: Update version number according to pushed tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
VERSION=${GITHUB_REF/refs\/tags\/v/} # stripping "refs/tags/v"
echo $VERSION
# Replace in-place version number in package __init__.py, also used by setup.py
sed -i -e "s/^__version__\s*=.*$/__version__ = \"${VERSION}\"/g" discrete_optimization/__init__.py
cat discrete_optimization/__init__.py
- name: Build discrete-optimization wheel
run: python setup.py bdist_wheel
- name: Upload as build artifacts
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist/*.whl
- name: Checkout source code
uses: actions/checkout@v2
- name: Install build dependencies
run: pip install -U setuptools wheel
- name: Update version number according to pushed tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
VERSION=${GITHUB_REF/refs\/tags\/v/} # stripping "refs/tags/v"
echo $VERSION
# Replace in-place version number in package __init__.py, also used by setup.py
sed -i -e "s/^__version__\s*=.*$/__version__ = \"${VERSION}\"/g" discrete_optimization/__init__.py
cat discrete_optimization/__init__.py
- name: Build discrete-optimization wheel
run: python setup.py bdist_wheel
- name: Upload as build artifacts
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist/*.whl

test:
needs: build
Expand Down

0 comments on commit 610bfe5

Please sign in to comment.