forked from COVESA/vehicle_signal_specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove VERSION and add install script and release action
Signed-off-by: Erik Jaegervall <[email protected]>
- Loading branch information
Showing
5 changed files
with
140 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Create Draft Release | ||
|
||
on: | ||
workflow_dispatch: # input version manually. Overrides push tag | ||
inputs: | ||
vss-version: | ||
description: "Release version (numerical version), e.g. 4.2, 4.2rc0" | ||
required: true | ||
default: "0.0.0" | ||
|
||
# Needed if GITHUB_TOKEN by default do not have right to create release | ||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
call_kuksa_databroker_build: | ||
uses: ./.github/workflows/buildcheck.yml | ||
with: | ||
vss-version: ${{ inputs.vss-version }} | ||
|
||
create_release: | ||
runs-on: ubuntu-latest | ||
needs: | ||
[ | ||
call_kuksa_databroker_build | ||
] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download all artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: build-artifacts | ||
merge-multiple: true | ||
- name: Display structure of downloaded files | ||
run: | | ||
ls -R build-artifacts | ||
- name: Create release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
draft: true | ||
tag_name: "v${{ inputs.vss-version }}" | ||
fail_on_unmatched_files: true | ||
files: | | ||
build-artifacts/* | ||
spec/units.yaml | ||
spec/quantities.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
# | ||
# Change this script to specify which version of vss-tools to install. | ||
# It must be a version compatible with the VSS version. | ||
# See https://github.com/COVESA/vss-tools for vss-tools information | ||
# | ||
# To be able to run the script you must have a python/pip environment | ||
# where pip is allowed, for instance a virtual python environment | ||
# , see https://docs.python.org/3/library/venv.html | ||
# | ||
# ************ MASTER *************'' | ||
# For master (ongoing development) we typically rely on latest master of vss-tools | ||
# | ||
pip install git+https://github.com/COVESA/vss-tools@master | ||
|
||
# Examples for other scenarios below | ||
# | ||
# ************ MAINTENANCE ********** | ||
# For development in maintenance branches we could either refer to a fixed version of vss-tools | ||
# or refer to a maintenance branch of vss-tools | ||
# pip install git+https://github.com/COVESA/[email protected] | ||
# | ||
# | ||
# ************* RELEASE CANDIDATES AND OTHER PRE-RELEASES *************** | ||
# For VSS release candidates we want to link to specified released VSS-tools version. | ||
# Either a released version or a pre-release, referenced with "--pre" | ||
# See https://pypi.org/project/vss-tools/ | ||
# | ||
# pip install --pre vss-tools==5.0.0.dev0 | ||
# | ||
# | ||
# *********************** RELEASES *************************** | ||
# For releases we should link to specific released pypi version. | ||
# | ||
# pip install vss-tools==4.2 |