Pistons pushing redstone blocks up gets powered by it
By utilizing sticky pistons or normal pistons to push redstone blocks up, the redstone block powers the pistons, making it unable to go back to unpowered stage unless you break the redstone block, it only powers pistons.