Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed API URL and firmware version from CI #5

Merged
merged 14 commits into from
Sep 20, 2023
Merged

Embed API URL and firmware version from CI #5

merged 14 commits into from
Sep 20, 2023

Conversation

redmushie
Copy link
Member

Hi,

I've added two environment variables to the CI:

  • SHOCKLINK_API_URL that contains the API URL (api.shocklink.net by default)
  • SHOCKLINK_FW_VERSION that contains:
    • On the master branch the value master-${{ github.sha }}
    • On a tag release the name of the tag, e.g. v0.7.5.

In platformio.ini I've added an extra_scripts = pre:embed.version.py to append a single build script. See the build script in question for more info.

@LucHeart LucHeart merged commit c4031f4 into OpenShock:master Sep 20, 2023
1 check passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants