Skip to content

Build and Release

Build and Release #6

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
inputs:
version:
description: "Version to release"
required: true
type: string
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: nix develop .#pnpmBuild --command pnpm install
- run: nix develop .#pnpmBuild --command pnpm lint
package:
runs-on: ubuntu-latest
needs: lint
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: nix develop .#wasmBuild --command pnpm install
- run: nix develop .#wasmBuild --command pnpm package
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
*.vsix
tag_name: ${{ github.event.inputs.version }}