Skip to content

Commit

Permalink
Merge pull request #77 from TNO/update-release-procedure
Browse files Browse the repository at this point in the history
Update release procedure
  • Loading branch information
Yuri-Blankenstein-TNO authored Feb 5, 2024
2 parents 3f89a62 + 922601f commit c637d7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ on:
workflow_dispatch:
inputs:
type:
description: 'Release type (patch/minor/major)'
description: 'Release type (major/minor/patch)'
default: 'patch'
required: true
type: choice
options:
- major
- minor
- patch

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Exit if workflow_dispatch on other branch than main
if: (github.event_name == 'workflow_dispatch') && (github.ref_name != 'refs/heads/main')
run: |
echo "Release workflow should be runned from main branch, exiting."
exit 1
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ To develop Tracy:
- Changes made to `src/extension/*` are **NOT** applied on-the-fly, to apply them go to *Run* (menu bar) -> *Restart Debugging*.

## Creating a new release
To create a new release, go to the [CI GitHub action](https://github.com/TNO/vscode-tracy/actions/workflows/ci.yml) -> *Run workflow* -> adjust type accordingly -> *Run workflow*. Wait till build completes and add the [release notes](https://github.com/TNO/vscode-tracy/releases/latest).
To create a new release, go to the [CI GitHub action](https://github.com/TNO/vscode-tracy/actions/workflows/ci.yml) -> *Run workflow* -> Choose *Branch*: **main** -> adjust the *Release type* accordingly -> *Run workflow*. Wait till build completes and add the [release notes](https://github.com/TNO/vscode-tracy/releases/latest).

0 comments on commit c637d7d

Please sign in to comment.