Skip to content

v0.0.5

v0.0.5 #5

Workflow file for this run

# refer to the github docs for more information https://github.com/github/vscode-github-actions/blob/main/.github/workflows/publish.yml
# Releases the plugin to GitHub and VS Code Marketplace
name: Release
on:
release:
types: [released]
jobs:
package:
name: Package
uses: ./.github/workflows/package.yml
secrets: inherit
with:
version: ${{ github.event.release.tag_name }}
release:
name: Release
runs-on: ubuntu-latest
needs: package
environment: prod
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
- name: Download VSIX artifact
uses: actions/download-artifact@v4
with:
name: apollon-${{ github.event.release.tag_name }}.vsix
path: .
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
registry-url: "https://npm.pkg.github.com"
- name: Install CI
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Strip v from version
id: strip-v
shell: bash
run: |
TAG=${{ github.event.release.tag_name }}
echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT
# release to VS Code Marketplace
- name: Publish Plugin
run: npx vsce publish --packagePath ./apollon-vscode-${{ steps.strip-v.outputs.VERSION }}.vsix -p ${{ secrets.PUBLISH_TOKEN }}
# Upload artifact as a release asset
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ./apollon-vscode-${{ steps.strip-v.outputs.VERSION }}.vsix#apollon-${{ github.event.release.tag_name }}.vsix