diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7753e64 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: "artifact-build" +on: + push: + pull_request: + branches: [ "main" ] + +env: + cloudflare_project: noogle + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v23 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: nix-community + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build .#ui -L + - name: Save output + if: github.event_name != 'push' + uses: actions/upload-artifact@v3 + with: + name: out + path: ./result \ No newline at end of file