Skip to content

Commit

Permalink
docs: release action
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Jan 6, 2025
1 parent 5772ab8 commit 8310069
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Release Every Other Monday
on:
workflow_dispatch:
inputs:
VERSION_NUMBER:
type: string
# Run action at 16:15 PM on Monday (UTC)
# schedule:
# @TODO: the schedule below is weekly. Do byweekly check.
Expand Down Expand Up @@ -53,4 +50,4 @@ jobs:
token: ${{steps.generate-token.outputs.token}}
repository: nasa-impact/veda-config
event-type: update-version
client-payload: '{"ref": "${{ github.ref }}", "VERSION_NUMBER": "${{ steps.git-release.outputs.VERSION_NUMBER || inputs.VERSION_NUMBER }}"}'
client-payload: '{"ref": "${{ github.ref }}", "VERSION_NUMBER": "${{ steps.git-release.outputs.VERSION_NUMBER }}"}'
35 changes: 35 additions & 0 deletions docs/development/RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# VEDA UI Release process

## Overview

VEDA UI uses Git tags for its releases (as of Jan 2025). While releases can be manually created, the VEDA UI team recommends using the automated process facilitated by GitHub Actions. This process includes instance builds triggered by the release workflow and supports targeting specific branches when necessary. By default, the release version number is determined based on the commit message following the Conventional Commit standard.

## Release Workflow

### What is included in the automated release process

The automated process handles

- Deciding the version number based on commit history
- Creating Git tag using the version number
- Creating a commit bumping the version number up in `package.json`
- Creating GitHub Release
- Creating VEDA instance preview using VEDA UI version

### GitHub Action Integration

#### Trigger Through UI

If you are a contributor, you can trigger an action through the Actions tab. Navigate to Actions, select the release action Release every other Monday, and click the Run workflow button to initiate a release. Select the branch only if you need to make a hotfix patch release. Keep in mind that your commit message should follow the Conventional Commit format when releasing a hotfix, as the action only recognizes commits made to the production branch.

![Screenshot of Github Action](../media/workflow-screenshot.png)

#### Instance Build

Upon triggering, the GitHub Action builds the Configuration (veda-config) instances using the specified release. It will create a Pull Request, as shown below, on veda-config, building a preview using the released UI.

![Screenshot of generated PR ](../media/preview-pr.png)

### Scheduled Release

Scheduled releases are not implemented yet but are coming soon!
Binary file added docs/media/preview-pr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media/workflow-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8310069

Please sign in to comment.