diff --git a/.github/workflows/publish-naftiko-crafter-assets.yml b/.github/workflows/publish-naftiko-crafter-assets.yml index dddfbda..df80a1e 100644 --- a/.github/workflows/publish-naftiko-crafter-assets.yml +++ b/.github/workflows/publish-naftiko-crafter-assets.yml @@ -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" \ No newline at end of file + - 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 }} diff --git a/.github/workflows/publish-naftiko-vscode-vsix.yml b/.github/workflows/publish-naftiko-vscode-vsix.yml deleted file mode 100644 index 6e09ee2..0000000 --- a/.github/workflows/publish-naftiko-vscode-vsix.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Publish Naftiko VSCode VSIX - -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: - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout naftiko/vscode repository - uses: actions/checkout@v5 - with: - repository: naftiko/vscode - # naftiko/vscode is private, use a secret PAT with contents permission and read access to naftiko/vscode - token: ${{ secrets.VSCODE_CONTENTS_READ }} - - - name: Setup Node.js - uses: actions/setup-node@v5 - with: - node-version: '22' - cache: 'npm' - cache-dependency-path: extensions/naftiko-vscode/package-lock.json - - - name: Install dependencies - run: npm ci - working-directory: extensions/naftiko-vscode - - - name: Install vsce - run: npm install -g @vscode/vsce - - - name: Package extension - run: vsce package - working-directory: extensions/naftiko-vscode - - - name: Upload VSIX artifact - uses: actions/upload-artifact@v5 - with: - name: naftiko-vscode-vsix - path: extensions/naftiko-vscode/*.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-vscode/*.vsix | head -1) - TAG="${{ github.event.release.tag_name || github.event.inputs.version }}" - gh release upload "$TAG" "$VSIX" --clobber --repo ${{ github.repository }} diff --git a/README.md b/README.md index 8d8ddd0..5d2daea 100644 --- a/README.md +++ b/README.md @@ -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)