on: push: paths: - 'pkgs/nvim/**' - 'flake.lock' - '.forgejo/workflows/**' jobs: nvim-bundle: runs-on: nix-upstream-latest if: github.ref == 'refs/heads/main' strategy: matrix: package_name: ["nvim-min"] container: volumes: - /nix/var/nix/daemon-socket:/nix-host steps: - run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf - run: echo "store = unix:///nix-host/socket" >> /etc/nix/nix.conf - run: nix-env -i nodejs curl - uses: actions/checkout@v4 - name: Run `nix bundle` run: | path="${{ matrix.package_name }}.AppImage" nix bundle --store unix:///nix-host/socket --bundler github:ralismark/nix-appimage \ -o "$path" \ .#${{ matrix.package_name }} curl --user "${{ secrets.FJ_USER }}:${{ secrets.FJ_PASS }}" \ --upload-file "$path" \ "${{ forge.api_url }}/packages/${{ secrets.FJ_USER }}/generic/${{ matrix.package_name }}/latest/$path"