Is there a way to do this:
Through Dynamo?
A quick search for the word ‘Publish’ in the RevitAPI docs makes it appear that the likely answer is no. Generally if you want to automate ACC procedures it’s time to learn APS/Forge at that point.
The only thing I’ve seen that you can do with ACC related activities is reload an ACC hosted linked model, but you need to know the guid of the model and link in order to do so (which Dynamo cannot get naturally).
This is doable. You just have to implement the APS code in Dynamo.
As a start, there is a sample APS app for publishing can be found in the tutorials here: APIs | Autodesk Platform Services
Once the right methods are implemented (up to step 6 at least, maybe step 7), you can build a Dynamo node to call the same methods in the same sequence as the APS automation just like you call the Revit API now.
A few notes:
The good way to do this is using APS like @jacob.small prefer, you can using rest api to able to embed inside dynamo script. But you should care about the security issues when try to be done it in Dynamo. My prefer is create authentication protect first when you try to execute the rest api
And then you can go thought into tutorial publish model command : APIs | Autodesk Platform Services