Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dsbilling committed Sep 15, 2023
1 parent 0acdde9 commit 52c42ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
token: ${{ secrets.KILOBYTE_BOT_PAT }}
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -29,13 +29,15 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Git Config
run: |
git config --global user.email "hei@kilobyte.no"
git config --global user.name "kilobyte-bot"
- name: Update __version__ in __init__.py
run: |
echo "Version: ${{ github.ref_name }}"
sed -i "s/__version__ = .*/__version__ = '${{ github.ref_name }}'/" ./oppe/__init__.py
cat ./oppe/__init__.py
git config --global user.email "hei@kilobyte.no"
git config --global user.name "kilobyte-bot"
git commit -am "Update __version__ to $TAG"
git push
- name: Build package
Expand Down

0 comments on commit 52c42ce

Please sign in to comment.