Skip to content

Commit 515024b

Browse files
committed
feat: enhance deployment workflow and update changelog for initial release
1 parent ab8fb77 commit 515024b

File tree

5 files changed

+127
-14
lines changed

5 files changed

+127
-14
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,26 @@ jobs:
1515
- run: npm ci
1616
- name: Setup Environment
1717
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV
18+
- name: Verify versions
19+
run: node -e "if ('refs/tags/v' + '${{ env.PACKAGE_VERSION }}' !== '${{ github.ref }}') { console.log('::error' + 'Version Mismatch. refs/tags/v' + '${{ env.PACKAGE_VERSION }}', '${{ github.ref }}'); throw Error('Version Mismatch')} "
20+
- name: Publish to Visual Studio Marketplace
21+
uses: HaaLeo/publish-vscode-extension@v2
22+
with:
23+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
24+
registryUrl: https://marketplace.visualstudio.com
1825
- name: Get Changelog Entry
1926
id: changelog_reader
2027
uses: mindsers/changelog-reader-action@v2
2128
with:
2229
version: ${{ env.PACKAGE_VERSION }}
2330
path: ./CHANGELOG.md
24-
# - name: Publish to Visual Studio Marketplace
25-
# uses: HaaLeo/publish-vscode-extension@v2
26-
# with:
27-
# pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
28-
# registryUrl: https://marketplace.visualstudio.com
31+
- name: Create/update release
32+
uses: ncipollo/release-action@v1
33+
with:
34+
tag: ${{ steps.changelog_reader.outputs.version }}
35+
name: Release ${{ steps.changelog_reader.outputs.version }}
36+
body: ${{ steps.changelog_reader.outputs.changes }}
37+
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }}
38+
draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }}
39+
allowUpdates: true
40+
token: ${{ secrets.TOKEN }}

CHANGELOG.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# Change Log
2-
3-
All notable changes to the "infrahub-vscode" extension will be documented in this file.
4-
5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6-
7-
## [Unreleased]
8-
9-
- Initial release
1+
## [Infrahub - vv0.0.1](https://github.com/opsmill/infrahub/tree/infrahub-vv0.0.1) - 2025-08-22
2+
3+
### Added
4+
5+
- Added the key functionality for an initial releas:
6+
1. Infrahub Server tree view (shows servers, status, branches)
7+
2. Infrahub YAML tree view (visualizes .infrahub.yml/.yaml structure)
8+
3. Go to Definition for YAML schema references
9+
4. Document symbols for YAML files (outline support)
10+
5. Edit YAML file from tree view
11+
6. Status bar server info
12+
7. YAML schema validation
13+
8. Workspace configuration for servers and schemas ([#7](https://github.com/opsmill/infrahub/issues/7))

changelog/.gitignore

Whitespace-only changes.

changelog/towncrier.md.template

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{% if render_title %}
2+
{% if versiondata.name %}
3+
# {{ versiondata.name }} {{ versiondata.version }} ({{ versiondata.date }})
4+
{% else %}
5+
# {{ versiondata.version }} ({{ versiondata.date }})
6+
{% endif %}
7+
{% endif %}
8+
{% for section, _ in sections.items() %}
9+
{% if section %}
10+
11+
## {{section}}
12+
{% endif %}
13+
{% if sections[section] %}
14+
{% for category, val in definitions.items() if category in sections[section] %}
15+
### {{ definitions[category]['name'] }}
16+
17+
{% for text, values in sections[section][category].items() %}
18+
- {{ text }}
19+
{%- if values %}
20+
{% if "\n - " in text or '\n * ' in text %}
21+
22+
23+
(
24+
{%- else %}
25+
{% if text %} ({% endif %}
26+
{%- endif -%}
27+
{%- for issue in values %}
28+
{{ issue.split(": ", 1)[0] }}{% if not loop.last %}, {% endif %}
29+
{%- endfor %}
30+
{% if text %}){% endif %}
31+
32+
{% else %}
33+
34+
{% endif %}
35+
{% endfor %}
36+
37+
{% if issues_by_category[section][category] and "]: " in issues_by_category[section][category][0] %}
38+
{% for issue in issues_by_category[section][category] %}
39+
{{ issue }}
40+
{% endfor %}
41+
42+
{% endif %}
43+
{% if sections[section][category]|length == 0 %}
44+
No significant changes.
45+
46+
{% else %}
47+
{% endif %}
48+
{% endfor %}
49+
{% else %}
50+
No significant changes.
51+
52+
{% endif %}
53+
{% endfor +%}

towncrier.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[tool.towncrier]
2+
directory = "changelog"
3+
filename = "CHANGELOG.md"
4+
start_string = "<!-- towncrier release notes start -->\n"
5+
underlines = ["", "", ""]
6+
title_format = "## [Infrahub - v{version}](https://github.com/opsmill/infrahub/tree/infrahub-v{version}) - {project_date}"
7+
issue_format = "[#{issue}](https://github.com/opsmill/infrahub/issues/{issue})"
8+
orphan_prefix = "+"
9+
template = "changelog/towncrier.md.template"
10+
11+
[[tool.towncrier.type]]
12+
directory = "security"
13+
name = "Security"
14+
showcontent = true
15+
16+
[[tool.towncrier.type]]
17+
directory = "removed"
18+
name = "Removed"
19+
showcontent = true
20+
21+
[[tool.towncrier.type]]
22+
directory = "deprecated"
23+
name = "Deprecated"
24+
showcontent = true
25+
26+
[[tool.towncrier.type]]
27+
directory = "added"
28+
name = "Added"
29+
showcontent = true
30+
31+
[[tool.towncrier.type]]
32+
directory = "changed"
33+
name = "Changed"
34+
showcontent = true
35+
36+
[[tool.towncrier.type]]
37+
directory = "fixed"
38+
name = "Fixed"
39+
showcontent = true
40+
41+
[[tool.towncrier.type]]
42+
directory = "housekeeping"
43+
name = "Housekeeping"
44+
showcontent = true

0 commit comments

Comments
 (0)