diff --git a/.github/workflows/release-nightly.yaml b/.github/workflows/release-nightly.yaml index dd22e37..56d3a01 100644 --- a/.github/workflows/release-nightly.yaml +++ b/.github/workflows/release-nightly.yaml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Check git version matches flake version shell: bash @@ -40,25 +42,17 @@ jobs: - name: Check Flake run: nix flake check - - name: Build release - run: nix build - - - name: Copy config-lsp - run: cp result/bin/config-lsp . - - - name: Build VS code extension - run: ./vs-code-extension/build-extension.sh - - - name: Zip folder - shell: bash - run: cd vs-code-extension/out/ && zip -r vs-code-extension.zip . && cd ../.. - - - name: Upload config-lsp - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + - name: Set up Go + uses: actions/setup-go@v5 with: - files: | - ./config-lsp - ./vs-code-extension/out/vs-code-extension.zip + go-version: stable + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GH_CONFIGLSP_TOKEN }} diff --git a/.gitignore b/.gitignore index 73e8f25..d09a1c6 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ config-lsp result bin debug.log + +dist/ diff --git a/flake.nix b/flake.nix index a0dce7a..d7c5018 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,16 @@ }; outputs = { self, nixpkgs, utils, gomod2nix }: - utils.lib.eachDefaultSystem (system: + utils.lib.eachSystem [ + "x86_64-linux" + "aarch64-linux" + + "x86_64-darwin" + "aarch64-darwin" + + "x86_64-windows" + "aarch64-windows" + ] (system: let version = "0.1.0"; # CI:CD-VERSION pkgs = import nixpkgs {