From c4764c263d2988d5abf629233bb7557e5bc05be0 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:15:02 +0200 Subject: [PATCH] feat(ci-cd): Automatically release nightly releases --- .github/workflows/release-nightly.yaml | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release-nightly.yaml diff --git a/.github/workflows/release-nightly.yaml b/.github/workflows/release-nightly.yaml new file mode 100644 index 0000000..2d06f7a --- /dev/null +++ b/.github/workflows/release-nightly.yaml @@ -0,0 +1,43 @@ +name: Build nightly release + + +on: + push: + branches: + - main + +jobs: + build-nightly: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Check Flake + run: nix flake check + + - name: Build release + run: nix build + + - name: Upload config-lsp + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + with: + files: result/bin/config-lsp + + - name: Build VS code extension + run: ./vs-code-extension/build-extension.sh + + - name: Upload VS Code extension + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + with: + files: vs-code-extension/out/ +