Git Hub Actions v2 now uses a new YAML syntax. You can find an updated workflow using the new syntax in the in this example repository.