Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions .github/workflows/publish-naftiko-crafter-assets.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,57 @@
name: Publish Naftiko Crafter Assets

on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'Release tag to upload the VSIX to (e.g. v1.2.3). Leave empty to skip publishing.'
required: false

jobs:
publish-vsix:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: dummy echo
run: echo "Publish Naftiko Crafter Assets"
- name: Checkout naftiko/crafter repository
uses: actions/checkout@v5
with:
repository: naftiko/crafter
# naftiko/crafter is private, use a secret PAT with contents permission and read access to naftiko/crafter
token: ${{ secrets.CRAFTER_CONTENTS_READ }}

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: extensions/naftiko-crafter/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: extensions/naftiko-crafter

- name: Install vsce
run: npm install -g @vscode/vsce

- name: Package extension
run: vsce package
working-directory: extensions/naftiko-crafter

- name: Upload VSIX artifact
uses: actions/upload-artifact@v5
with:
name: naftiko-crafter-vsix
path: extensions/naftiko-crafter/*.vsix

- name: Publish to GitHub Releases (fleet)
if: github.event_name == 'release' || github.event.inputs.version != ''
env:
GH_TOKEN: ${{ github.token }}
run: |
VSIX=$(ls extensions/naftiko-crafter/*.vsix | head -1)
TAG="${{ github.event.release.tag_name || github.event.inputs.version }}"
gh release upload "$TAG" "$VSIX" --clobber --repo ${{ github.repository }}
57 changes: 0 additions & 57 deletions .github/workflows/publish-naftiko-vscode-vsix.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Community Edition is provided as freeware, with upcoming Standard and Enterp
### [Naftiko Framework](https://github.com/naftiko/framework/)
Open Source project (Apache 2.0) to create and run Naftiko capabilities using spec-driven integration.

### [Naftiko Crafter - extension for VS Code](https://github.com/naftiko/fleet/wiki/Naftiko-Extension-for-VS-Code)
### [Naftiko Crafter - extension for VS Code](https://github.com/naftiko/fleet/wiki/Naftiko-Crafter-VS-Code-Extension)
Free Naftiko extension for Visual Studio Code to help with the editing and linting of Naftiko capabilities.

### [Naftiko Warden - custom Templates for Backstage](https://github.com/naftiko/fleet/wiki/Naftiko-Warden-custom-Templates-for-Backstage)
Expand Down
Loading