Skip to content

upgrade garmin fit sdk profile version 21.188.0 #1

upgrade garmin fit sdk profile version 21.188.0

upgrade garmin fit sdk profile version 21.188.0 #1

Workflow file for this run

name: 'Release'

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 33, Col: 14): Unexpected symbol: 'ref_name#v'. Located at position 8 within expression: github.ref_name#v
on:
push:
tags:
- 'v*'
defaults:
run:
# make sure to work on Windows
shell: 'bash'
jobs:
release-pypi:
name: 'release-pypi'
runs-on: 'ubuntu-latest'
permissions:
id-token: 'write'
contents: 'write'
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- uses: 'actions/setup-python@v5'
with:
python-version: '3.11'
cache: 'pip'
- name: 'Check prerelease'
id: 'check_version'
run: |
if [[ "${{ github.ref_name#v }}" =~ [a-zA-Z] ]]; then
echo 'PRERELEASE=true' >> $GITHUB_OUTPUT
else
echo 'PRERELEASE=false' >> $GITHUB_OUTPUT
fi
- name: 'Build release artifacts'
if: steps.check_version.outputs.PRERELEASE == 'false'
run: 'pipx run build'
- name: 'Build prerelease artifacts'
if: steps.check_version.outputs.PRERELEASE == 'true'
run: 'pipx run build'
env:
SETUPTOOLS_SCM_ADD_LOCAL: '1'
- name: 'Upload artifacts'
uses: 'actions/upload-artifact@v4'
with:
name: 'fit-tool-ng-wheel'
path: 'dist/*.whl'
if-no-files-found: 'error'
retention-days: 15
- name: 'Test Build'
run: |
python -m pip install "fit-tool-ng @ file://$(ls ${GITHUB_WORKSPACE}/dist/*.whl)"
fittool --help
- name: 'Publish package distributions to PyPI'
if: steps.check_version.outputs.PRERELEASE == 'false'
uses: 'pypa/gh-action-pypi-publish@release/v1'
- name: 'Build Changelog'
id: 'build_changelog'
uses: 'mikepenz/release-changelog-builder-action@v5'
with:
toTag: ${{ github.ref_name }}
configurationJson: |
{
"categories": [
{
"title": "### Features",
"labels": ["feature", "feat"]
},
{
"title": "### Bug Fixes",
"labels": ["fix", "bug"]
},
{
"title": "### Documentation",
"labels": ["docs", "documentation"]
},
{
"title": "### Refactoring",
"labels": ["refactor"]
},
{
"title": "### Tests",
"labels": ["test", "tests"]
},
{
"title": "### Dependencies",
"labels": ["dependencies", "deps"]
},
{
"title": "### Chores",
"labels": ["chore"]
}
],
"uncategorized_title": "### Uncategorized",
"template": "##{{CHANGELOG}}",
"pr_template": "- {{TITLE}} (#{{NUMBER}}) by @{{AUTHOR}}"
}
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: 'Create Release'
uses: 'softprops/action-gh-release@v1'
with:
body: '${{ steps.build_changelog.outputs.changelog }}'
prerelease: '${{ steps.check_version.outputs.PRERELEASE }}'
files: 'dist/*'