[features/claude-code] Clean up installer generated config files when… #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CD: Publish DevContainer Feature" | |
| on: | |
| push: | |
| tags: | |
| - "features/**" | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Tag name (e.g., features/devcontainer-cli/v1.0.0)" | |
| required: true | |
| type: string | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Extract feature name from tag | |
| id: meta | |
| run: | | |
| # features/devcontainer-cli/v1.0.0 → devcontainer-cli | |
| TAG="${{ inputs.tag || github.ref_name }}" | |
| NAME=$(echo "$TAG" | cut -d'/' -f2) | |
| echo "name=$NAME" >> "$GITHUB_OUTPUT" | |
| - name: Validate feature exists | |
| run: | | |
| if [ ! -d "features/src/${{ steps.meta.outputs.name }}" ]; then | |
| echo "::error::Feature '${{ steps.meta.outputs.name }}' not found" | |
| exit 1 | |
| fi | |
| - name: Prepare single feature for publish | |
| run: | | |
| mkdir -p /tmp/publish-features | |
| cp -r "features/src/${{ steps.meta.outputs.name }}" /tmp/publish-features/ | |
| - name: Publish feature | |
| uses: devcontainers/action@v1 | |
| with: | |
| publish-features: true | |
| base-path-to-features: /tmp/publish-features | |
| features-namespace: ${{ github.repository_owner }}/${{ github.event.repository.name }}-features | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |