Skip to content

Commit

Permalink
Added Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-midolo committed Dec 20, 2023
1 parent 7e2114a commit 6e962f4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,19 @@ jobs:
python -c "import json; data = json.load(open('library.json')); data['version'] = '$next_version'; json.dump(data, open('library.json', 'w'))"
- name: Update Version in platformio.ini
run: |
sed -i 's/\(mauro-midolo\/ESP32 Heltec OLED Logger@^\)[0-9.]\+/\1'"$next_version_no_v"'/' ./examples/example1/platformio.ini
sed -i 's/\(mauro-midolo\/ESP32 Heltec OLED Logger@^\)[0-9.]\+/\1'"$next_version_no_v"'/' ./examples/example1/platformio.ini
- name: Commit Changes
run: |
git add ./examples/example1/platformio.ini library.json
git commit -m "Upgrade version from $latest_version to $next_version"
git push origin main
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_version.outputs.version }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6e962f4

Please sign in to comment.