konveyor / editor-extensions

Developer experience stuff, like VSCode Extension, for Konveyor.
0 stars 8 forks source link

[.github] workflow to handle creating a release whenever a `vX.Y.Z` tag is created #73

Closed djzager closed 1 month ago

djzager commented 1 month ago

Similar to what we did here for container images being pushed to quay, when we see a tag of the vx.y.z form we should find the release associated with it and add the vscode extension package(s) to it as assets.

Pseudocode:

name: Publish extension package(s)

on:
  push:
    tags:
      - 'v*'

jobs:
  release:
    steps:
      - checkout code + setup node
      - update package.json version to match the tag (it should win now that we are setting it)
      - get the artifacts and rename them
      - find the release (because we are assuming it's creation is what made the semver compliant tag exist)
      - add artifacts to the release