I did that years ago, after I had a fireplace for many years, dumping the ashes in the alley, where where it never did any harm.
I started gardening, and threw some ashes in my garden, thinking I would improve the fertility of my new garden.
I took some soil samples into my County extension office, and got severely chastised for polluting my garden. There are some nutrients in wood ashes, but they raise the pH, a major problem for me. (They have me add sulfur about every second year to reduce the pH.)
You should have your soil tested before you decide what to do with ashes.
/johnny