see how it's done here https://github.com/samuelreichor/query-api/blob/main/.github/workflows/publish.yml